CCN.Modules.Car.DataAccess.CarDataAccess.DoTopCar C# (CSharp) Method

DoTopCar() public method

置顶或取消置顶
public DoTopCar ( string carid, int istop ) : int
carid string 车辆id
istop int 1.置顶 0取消置顶
return int
        public int DoTopCar(string carid, int istop)
        {
            const string sql = "update car_info set istop=@istop where innerid=@carid;";
            try
            {
                Helper.Execute(sql, new { carid, istop });
            }
            catch (Exception ex)
            {
                return 0;
            }
            return 1;
        }
CarDataAccess