public static ContentParameter GetContentParameter(int contentParameterID) { try { ContentParameterDAO contentParameterDAO = new ContentParameterDAO(); return contentParameterDAO.GetContentParameter(contentParameterID); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessGetContentParameterException, ex); } }
public static void UpdateContentParameter(ContentParameter contentParameter) { try { ContentParameterDAO contentParameterDAO = new ContentParameterDAO(); contentParameterDAO.UpdateContentParameter(contentParameter); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessUpdateContentParameterException, ex); } }
public static ContentParameterCollection GetContentParameterList(ContentParameterColumns orderBy, string orderDirection) { try { ContentParameterDAO contentParameterDAO = new ContentParameterDAO(); return contentParameterDAO.GetContentParameterList(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.BusinessGetContentParameterListException, ex); } }