コード例 #1
0
 public static MessageCommand GetMessageCommand(int messageCommandID)
 {            
     try
     {
         MessageCommandDAO messageCommandDAO = new MessageCommandDAO();
         return messageCommandDAO.GetMessageCommand(messageCommandID);                
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetMessageCommandException, ex);
     }
 }                
コード例 #2
0
 public static void UpdateMessageCommand(MessageCommand messageCommand)
 {            
     try
     {
         MessageCommandDAO messageCommandDAO = new MessageCommandDAO();
         messageCommandDAO.UpdateMessageCommand(messageCommand);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessUpdateMessageCommandException, ex);
     }
 }        
コード例 #3
0
 public static MessageCommandCollection GetMessageCommandList(MessageCommandColumns orderBy, string orderDirection)
 {            
     try
     {
         MessageCommandDAO messageCommandDAO = new MessageCommandDAO();
         return messageCommandDAO.GetMessageCommandList(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.BusinessGetMessageCommandListException, ex);
     }
 }