public DiscountEntity Update(DiscountEntity entity) { try { _discountRepository.Update(entity); return entity; } catch (Exception e) { _log.Error(e, "数据库操作出错"); return null; } }
public bool Delete(DiscountEntity entity) { try { _discountRepository.Delete(entity); return true; } catch (Exception e) { _log.Error(e, "数据库操作出错"); return false; } }