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 }) )); }
public IActionResult Stocksb() { var taskResult = StockPublisher.GetList(0, 20); return(Ok(taskResult.Result)); }