public static MessageContentSentAttachement GetMessageContentSentAttachement(int messageContentSentAttachementID) { try { MessageContentSentAttachementDAO messageContentSentAttachementDAO = new MessageContentSentAttachementDAO(); return messageContentSentAttachementDAO.GetMessageContentSentAttachement(messageContentSentAttachementID); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessGetMessageContentSentAttachementException, ex); } }
public static void UpdateMessageContentSentAttachement(MessageContentSentAttachement messageContentSentAttachement) { try { MessageContentSentAttachementDAO messageContentSentAttachementDAO = new MessageContentSentAttachementDAO(); messageContentSentAttachementDAO.UpdateMessageContentSentAttachement(messageContentSentAttachement); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessUpdateMessageContentSentAttachementException, ex); } }
public static MessageContentSentAttachementCollection GetMessageContentSentAttachementList(MessageContentSentAttachementColumns orderBy, string orderDirection) { try { MessageContentSentAttachementDAO messageContentSentAttachementDAO = new MessageContentSentAttachementDAO(); return messageContentSentAttachementDAO.GetMessageContentSentAttachementList(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.BusinessGetMessageContentSentAttachementListException, ex); } }