public static void UpdateExtensionMessage(ExtensionMessage extensionMessage)
 {            
     try
     {
         ExtensionMessageDAO extensionMessageDAO = new ExtensionMessageDAO();
         extensionMessageDAO.UpdateExtensionMessage(extensionMessage);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessUpdateExtensionMessageException, ex);
     }
 }        
 public static ExtensionMessage GetExtensionMessage(long extensionMessageID)
 {            
     try
     {
         ExtensionMessageDAO extensionMessageDAO = new ExtensionMessageDAO();
         return extensionMessageDAO.GetExtensionMessage(extensionMessageID);                
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetExtensionMessageException, ex);
     }
 }                
 public static ExtensionMessageCollection GetExtensionMessageList(ExtensionMessageColumns orderBy, string orderDirection)
 {            
     try
     {
         ExtensionMessageDAO extensionMessageDAO = new ExtensionMessageDAO();
         return extensionMessageDAO.GetExtensionMessageList(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.BusinessGetExtensionMessageListException, ex);
     }
 }        
 public static ExtensionMessageCollection GetExtensionMessageListByTitle(string title, string customerID, ExtensionMessageColumns orderBy, string orderDirection, int page, int pageSize, out int totalRecords)
 {
     try
     {
         ExtensionMessageDAO extensionMessageDAO = new ExtensionMessageDAO();
         return extensionMessageDAO.GetExtensionMessageListByTitle(title, customerID, orderBy, orderDirection, page, pageSize, out totalRecords);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetExtensionMessageListException, ex);
     }
 }