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;
}