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

CheckCollection() public method

检查重复收藏
public CheckCollection ( CarCollectionModel model ) : CarCollectionModel
model CarCollectionModel
return CarCollectionModel
        public CarCollectionModel CheckCollection(CarCollectionModel model)
        {
            const string sql =
                @"select innerid, custid, carid, remark, createdtime from car_collection where custid=@custid and carid=@carid;";
            return
                Helper.Query<CarCollectionModel>(sql, new { custid = model.Custid, carid = model.Carid }).FirstOrDefault();
        }
CarDataAccess