Exemplo n.º 1
0
        public ActionResult Index(BuysViewModel viewModel)
        {
            var buysDtos = _buyService.GetBuys(viewModel.SelectedTickerId);

            viewModel.Buys = GetBuyViewModels(buysDtos);
            viewModel.Tickers = GetTickersForDropDown();
            return View(viewModel);
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            var buysDtos = _buyService.GetAllBuys();

            var buysViewModels = new BuysViewModel
            {
                Buys = GetBuyViewModels(buysDtos),
                Tickers = GetTickersForDropDown()
            };

            return View(buysViewModels);
        }