示例#1
0
 public Entity.Entity.Coupon.Coupon Update(Entity.Entity.Coupon.Coupon entity)
 {
     try
     {
         _couponRepository.Update(entity);
         return(entity);
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(null);
     }
 }
示例#2
0
 public bool Delete(Entity.Entity.Coupon.Coupon entity)
 {
     try
     {
         _couponRepository.Delete(entity);
         return(true);
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(false);
     }
 }