Пример #1
0
        public IActionResult Stocks()
        {
            var taskResult = StockPublisher.GetList(0, 20);

            return(Ok(taskResult.Result.Select(s =>
                                               new StockViewModel {
                StockId = s.Id,
                Symbol = s.Symbol,
                SecurityName = s.SecurityName,
                Market = s.Market
            })
                      ));
        }
Пример #2
0
        public IActionResult Stocksb()
        {
            var taskResult = StockPublisher.GetList(0, 20);

            return(Ok(taskResult.Result));
        }