Esempio n. 1
0
        public ActionResult About()
        {
            var recentEvents      = _eventService.GetRecentlyAddedOlympicEvents();
            var recentRecords     = _recordService.GetRecentRecords();
            var recentCompetitors = _competitorService.GetRecentlyAddedCompetitors();
            var randomQuote       = _quoteService.GetRandomQuote();
            var viewModel         = HomeViewModel.Build(recentEvents, recentRecords, recentCompetitors, randomQuote);

            return(View(viewModel));
        }
Esempio n. 2
0
        public async Task <IActionResult> Index()
        {
            var vm = await _homeView.Build();

            return(View(vm));
        }