Пример #1
0
 public static void UpdateServiceType(ServiceType serviceType)
 {            
     try
     {
         ServiceTypeDAO serviceTypeDAO = new ServiceTypeDAO();
         serviceTypeDAO.UpdateServiceType(serviceType);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessUpdateServiceTypeException, ex);
     }
 }        
Пример #2
0
 public static ServiceType GetServiceType(int serviceTypeID)
 {            
     try
     {
         ServiceTypeDAO serviceTypeDAO = new ServiceTypeDAO();
         return serviceTypeDAO.GetServiceType(serviceTypeID);                
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetServiceTypeException, ex);
     }
 }                
Пример #3
0
 public static ServiceTypeCollection GetServiceTypeList(ServiceTypeColumns orderBy, string orderDirection)
 {            
     try
     {
         ServiceTypeDAO serviceTypeDAO = new ServiceTypeDAO();
         return serviceTypeDAO.GetServiceTypeList(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.BusinessGetServiceTypeListException, ex);
     }
 }        
Пример #4
0
 public static ServiceTypeCollection ExistServiceTypeIdForServiceType(string ServiceTypeDescription)
 {
     try
     {
         ServiceTypeDAO serviceTypeDAO = new ServiceTypeDAO();
         return serviceTypeDAO.ExistServiceTypeIdForServiceType(ServiceTypeDescription);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetServiceTypeListException, ex);
     }
 }