Exemplo n.º 1
0
 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.");
     }
 }
Exemplo n.º 2
0
 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.");
     }
 }
Exemplo n.º 3
0
 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.");
     }
 }
Exemplo n.º 4
0
 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.");
     }
 }