Пример #1
0
        private static List <Stock> GetStocks(int[] ids, int skip, string startDate, string endDate)
        {
            StockDAL stockDAL = new StockDAL();

            stockDAL.OpenConnection(GetConnString());
            List <Stock> stocks = new List <Stock>();

            try
            {
                stocks = ListStocksViaList(stockDAL, string.Join(",", ids), startDate, endDate, skip);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            finally
            {
                stockDAL.CloseConnection();
            }

            return(stocks);
        }