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

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

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

            return View(buysViewModels);
        }