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

SetCarCover() private method

private SetCarCover ( string carid, string imgKey ) : int
carid string
imgKey string
return int
        public int SetCarCover(string carid, string imgKey)
        {
            const string sql = @"update car_info set pic_url=@pic_url where innerid=@innerid;";

            try
            {
                Helper.Execute(sql, new { innerid = carid, pic_url = imgKey });
                return 1;
            }
            catch (Exception ex)
            {

                return 0;
            }
        }
CarDataAccess