public void AddAEFlatRateRecord(AEFlatRate aeFlatRate)
 {
     try
     {
         aeFlatRate.Save();
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(ex);
         throw new Exception("An error occurred while trying to retrieve the Flat Rate record.");
     }
 }
 public void DeleteAEFlatRateRecord(int aeFlatRateId)
 {
     try
     {
         AEFlatRate.DeleteRecord(aeFlatRateId);
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(ex);
         throw new Exception("An error occurred while trying to delete the Flat Rate record.");
     }
 }
 public List <AEFlatRate> GetAEFlatRates(string aeId, int companyId)
 {
     try
     {
         return(AEFlatRate.GetAEFlatRates(aeId, companyId));
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(ex);
         throw new Exception("An error occurred while trying to retrieve the Flat Rate data.");
     }
 }
 public bool CheckExistingFlatRateEffectiveDate(string aeId, int companyId, DateTime flatRateEffectiveDate)
 {
     try
     {
         return(AEFlatRate.CheckExistingFlatRateEffectiveDate(aeId, companyId, flatRateEffectiveDate));
     }
     catch (Exception ex)
     {
         WebCommon.LogExceptionInfo(ex);
         throw new Exception("An error occurred while checking for existing effective dates.");
     }
 }