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