コード例 #1
0
 public static CustomerType GetCustomerType(int typeID)
 {            
     try
     {
         CustomerTypeDAO customerTypeDAO = new CustomerTypeDAO();
         return customerTypeDAO.GetCustomerType(typeID);                
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetCustomerTypeException, ex);
     }
 }                
コード例 #2
0
 public static void UpdateCustomerType(CustomerType customerType)
 {            
     try
     {
         CustomerTypeDAO customerTypeDAO = new CustomerTypeDAO();
         customerTypeDAO.UpdateCustomerType(customerType);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessUpdateCustomerTypeException, ex);
     }
 }        
コード例 #3
0
 public static CustomerTypeCollection GetCustomerTypeList(CustomerTypeColumns orderBy, string orderDirection)
 {            
     try
     {
         CustomerTypeDAO customerTypeDAO = new CustomerTypeDAO();
         return customerTypeDAO.GetCustomerTypeList(orderBy, orderDirection);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetCustomerTypeListException, ex);
     }
 }