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