public static stock_NewsGroup Getstock_NewsGroup(int id) { try { stock_NewsGroupDAO stock_NewsGroupDAO = new stock_NewsGroupDAO(); return stock_NewsGroupDAO.Getstock_NewsGroup(id); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessGetstock_NewsGroupException, ex); } }
public static void Updatestock_NewsGroup(stock_NewsGroup stock_NewsGroup) { try { stock_NewsGroupDAO stock_NewsGroupDAO = new stock_NewsGroupDAO(); stock_NewsGroupDAO.Updatestock_NewsGroup(stock_NewsGroup); } catch (ApplicationException) { throw; } catch (Exception ex) { // log this exception log4net.Util.LogLog.Error(ex.Message, ex); // wrap it and rethrow throw new ApplicationException(SR.BusinessUpdatestock_NewsGroupException, ex); } }
public static stock_NewsGroupCollection Getstock_NewsGroupList(stock_NewsGroupColumns orderBy, string orderDirection) { try { stock_NewsGroupDAO stock_NewsGroupDAO = new stock_NewsGroupDAO(); return stock_NewsGroupDAO.Getstock_NewsGroupList(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.BusinessGetstock_NewsGroupListException, ex); } }