Esempio n. 1
0
 public bool CheckExistingCommissionAmountYear(string aeId, int companyId, int year)
 {
     try
     {
         return(AECommissionAmount.CheckExistingCommissionAmountYear(aeId, companyId, year));
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(ex);
         throw new Exception("An error occurred while checking for existing commission amount years.");
     }
 }
Esempio n. 2
0
 public List <AECommissionAmount> GetAECommissionAmounts(string aeId, int companyId)
 {
     try
     {
         return(AECommissionAmount.GetAECommissionAmounts(aeId, companyId));
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(ex);
         throw new Exception("An error occurred while trying to retrieve the Commission Amount data.");
     }
 }
Esempio n. 3
0
 public void AddAECommissionAmountRecord(AECommissionAmount aeCommissionAmount)
 {
     try
     {
         aeCommissionAmount.Save();
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(ex);
         throw new Exception("An error occurred while trying to add the Commission Amount record.");
     }
 }
Esempio n. 4
0
 public void DeleteAECommissionAmountRecord(int aeCommissionAmountId)
 {
     try
     {
         AECommissionAmount.DeleteRecord(aeCommissionAmountId);
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(ex);
         throw new Exception("An error occurred while trying to delete the Draw/Payment record.");
     }
 }