Exemplo n.º 1
0
        //TODO: Opravi si pomiite
        public async Task <IActionResult> Index()
        {
            var homeVM = new HomeViewModel();
            var bars   = await barServices.GetTopThreeBars();

            homeVM.TopThreebars = bars.GetViewModels();
            var cocktails = await cocktailServices.GetTopThreeCocktails();

            homeVM.TopThreeCocktails = cocktails.GetViewModels();

            return(View(homeVM));
        }