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