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