示例#1
0
 public static CustomerCollection GetCustomerList(CustomerColumns orderBy, string orderDirection)
 {            
     try
     {
         CustomerDAO customerDAO = new CustomerDAO();
         return customerDAO.GetCustomerList(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.BusinessGetCustomerListException, ex);
     }
 }        
示例#2
0
 public static CustomerCollection GetCustomerListByBirthDay()
 {
     try
     {
         CustomerDAO customerDAO = new CustomerDAO();
         return customerDAO.GetCustomerList(CustomerColumns.CustomerId, "ASC", DateTime.Now);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetCustomerListException, ex);
     }
 }