Exemplo n.º 1
0
		public MerchantOrderEntity Update (MerchantOrderEntity entity)
		{
			try
            {
                _merchantorderRepository.Update(entity);
                return entity;
            }
            catch (Exception e)
            {
				_log.Error(e,"数据库操作出错");
                return null;
            }
		}
Exemplo n.º 2
0
		public bool Delete(MerchantOrderEntity entity)
		{
			try
            {
                _merchantorderRepository.Delete(entity);
                return true;
            }
            catch (Exception e)
            {
				_log.Error(e,"数据库操作出错");
                return false;
            }
		}