public static void DeleteRelatedMessagelog(long relatedMessagelogID)
 {            
     try
     {
         RelatedMessagelogDAO relatedMessagelogDAO = new RelatedMessagelogDAO();
         relatedMessagelogDAO.DeleteRelatedMessagelog(relatedMessagelogID);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessDeleteRelatedMessagelogException, ex);
     }
 }
 public static RelatedMessagelogCollection GetRelatedMessagelogList(RelatedMessagelogColumns orderBy, string orderDirection, int page, int pageSize, out int totalRecords)
 {            
     try
     {
         RelatedMessagelogDAO relatedMessagelogDAO = new RelatedMessagelogDAO();
         return relatedMessagelogDAO.GetRelatedMessagelogList(orderBy, orderDirection, page, pageSize, out totalRecords);
     }
     catch (ApplicationException)
     {
         throw;
     }
     catch (Exception ex)
     {
         // log this exception
         log4net.Util.LogLog.Error(ex.Message, ex);
         // wrap it and rethrow
         throw new ApplicationException(SR.BusinessGetRelatedMessagelogListException, ex);
     }
 }