コード例 #1
0
 public static IncomingMessageContent GetIncomingMessageContent(int incomingMessageContentID)
 {            
     try
     {
         IncomingMessageContentDAO incomingMessageContentDAO = new IncomingMessageContentDAO();
         return incomingMessageContentDAO.GetIncomingMessageContent(incomingMessageContentID);                
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetIncomingMessageContentException, ex);
     }
 }                
コード例 #2
0
 public static void UpdateIncomingMessageContent(IncomingMessageContent incomingMessageContent)
 {            
     try
     {
         IncomingMessageContentDAO incomingMessageContentDAO = new IncomingMessageContentDAO();
         incomingMessageContentDAO.UpdateIncomingMessageContent(incomingMessageContent);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessUpdateIncomingMessageContentException, ex);
     }
 }        
コード例 #3
0
 public static IncomingMessageContentCollection GetIncomingMessageContentList(IncomingMessageContentColumns orderBy, string orderDirection)
 {            
     try
     {
         IncomingMessageContentDAO incomingMessageContentDAO = new IncomingMessageContentDAO();
         return incomingMessageContentDAO.GetIncomingMessageContentList(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.BusinessGetIncomingMessageContentListException, ex);
     }
 }