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); } }
public bool Delete(Entity.Entity.Coupon.Coupon entity) { try { _couponRepository.Delete(entity); return(true); } catch (Exception e) { _log.Error(e, "数据库操作出错"); return(false); } }