Пример #1
0
 public static void AddFee(FillFee fee, BusiLog busiLog)
 {
     try
     {
         BusinessRules.Prepay.PrepayFee prepay = new BusinessRules.Prepay.PrepayFee();
         prepay.AddFee(fee, busiLog);
     }
     catch (SqlException sex)
     {
         LogAdapter.WriteDatabaseException(sex);
         throw new Exception("数据库访问异常。");
     }
     catch (Exception ex)
     {
         LogAdapter.WriteFeaturesException(ex);
         throw new Exception("业务规则层异常。");
     }
 }
Пример #2
0
 public static void UpdateCompany(MebCompanyPrepay company, BusiLog busiLog)
 {
     try
     {
         BusinessRules.Prepay.PrepayFee prepay = new BusinessRules.Prepay.PrepayFee();
         prepay.UpdateCompany(company, busiLog);
     }
     catch (SqlException sex)
     {
         LogAdapter.WriteDatabaseException(sex);
         throw new Exception("数据库访问异常。");
     }
     catch (Exception ex)
     {
         LogAdapter.WriteFeaturesException(ex);
         throw new Exception("业务规则层异常。");
     }
 }