public static stock_NewCollection Getstock_NewList(string StockCode, string customerID) { try { stock_NewDAO stock_NewDAO = new stock_NewDAO(); return stock_NewDAO.Getstock_NewList(StockCode, customerID); } 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_NewListException, ex); } }
public static stock_NewCollection Getstock_NewList(stock_NewColumns orderBy, string orderDirection) { try { stock_NewDAO stock_NewDAO = new stock_NewDAO(); return stock_NewDAO.Getstock_NewList(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_NewListException, ex); } }
public static stock_NewCollection Getstock_NewList(string StockCode, string customerID, stock_NewColumns orderBy, string orderDirection, int page, int pageSize, out int totalRecords) { try { stock_NewDAO stock_NewDAO = new stock_NewDAO(); return stock_NewDAO.Getstock_NewList(StockCode, customerID, 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.BusinessGetstock_NewListException, ex); } }