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); } }
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); } }
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); } }