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."); } }
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."); } }
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."); } }
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."); } }