public static MessageContentAttachement GetMessageContentAttachement(int messageContentAttachementID)
 {            
     try
     {
         MessageContentAttachementDAO messageContentAttachementDAO = new MessageContentAttachementDAO();
         return messageContentAttachementDAO.GetMessageContentAttachement(messageContentAttachementID);                
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetMessageContentAttachementException, ex);
     }
 }                
 public static void UpdateMessageContentAttachement(MessageContentAttachement messageContentAttachement)
 {            
     try
     {
         MessageContentAttachementDAO messageContentAttachementDAO = new MessageContentAttachementDAO();
         messageContentAttachementDAO.UpdateMessageContentAttachement(messageContentAttachement);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessUpdateMessageContentAttachementException, ex);
     }
 }        
 public static MessageContentAttachementCollection GetMessageContentAttachementList(MessageContentAttachementColumns orderBy, string orderDirection)
 {            
     try
     {
         MessageContentAttachementDAO messageContentAttachementDAO = new MessageContentAttachementDAO();
         return messageContentAttachementDAO.GetMessageContentAttachementList(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.BusinessGetMessageContentAttachementListException, ex);
     }
 }