Ejemplo n.º 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);
     }
 }        
Ejemplo n.º 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);
     }
 }                
Ejemplo n.º 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);
     }
 }        
Ejemplo n.º 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);
     }
 }