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

DeleteCollectionByCarid() public method

删除收藏 by carid
public DeleteCollectionByCarid ( string carid, string custid ) : int
carid string 车辆id
custid string 会员id
return int
        public int DeleteCollectionByCarid(string carid, string custid)
        {
            const string sql = "delete from car_collection where carid=@carid and custid=@custid;";

            try
            {
                var i = Helper.Execute(sql, new { carid, custid });
                return i > 0 ? 1 : 0;
            }
            catch (Exception ex)
            {
                LoggerFactories.CreateLogger().Write("删除收藏异常[by carid]:", TraceEventType.Error, ex);
                return 0;
            }
        }
CarDataAccess