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)); }
public async Task <IActionResult> Index() { var vm = await _homeView.Build(); return(View(vm)); }