Пример #1
0
 public AreaEntity GetAreaById(int id)
 {
     try
     {
         return(_areaRepository.GetById(id));
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(null);
     }
 }
Пример #2
0
 public ProductEntity GetProductById(int id)
 {
     try
     {
         return(_productRepository.GetById(id));
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         return(null);
     }
 }
 public CommissionRatioEntity GetById(int id)
 {
     try
     {
         return(_commissionRatioRepository.GetById(id));
     }
     catch (Exception e)
     {
         _log.Error(e, "数据库操作出错");
         throw;
     }
 }