public static IncomingMessageContentSent GetIncomingMessageContentSent(long incomingMessageContentSentID) { try { IncomingMessageContentSentDAO incomingMessageContentSentDAO = new IncomingMessageContentSentDAO(); return incomingMessageContentSentDAO.GetIncomingMessageContentSent(incomingMessageContentSentID); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessGetIncomingMessageContentSentException, ex); } }
public static void UpdateIncomingMessageContentSent(IncomingMessageContentSent incomingMessageContentSent) { try { IncomingMessageContentSentDAO incomingMessageContentSentDAO = new IncomingMessageContentSentDAO(); incomingMessageContentSentDAO.UpdateIncomingMessageContentSent(incomingMessageContentSent); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessUpdateIncomingMessageContentSentException, ex); } }
public static IncomingMessageContentSentCollection GetIncomingMessageContentSentList(IncomingMessageContentSentColumns orderBy, string orderDirection) { try { IncomingMessageContentSentDAO incomingMessageContentSentDAO = new IncomingMessageContentSentDAO(); return incomingMessageContentSentDAO.GetIncomingMessageContentSentList(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.BusinessGetIncomingMessageContentSentListException, ex); } }