public ActionResult PredictionsDisplay() { var experts = _expertService.GetExperts(); var tours = _tourService.GetLastTournamentTours(); var viewModel = new PredictionsDisplayViewModel(experts, tours); return(View(viewModel)); }
public ActionResult MatchStats() { var tours = _tourService.GetLastTournamentTours().Select(t => t.GetDto()).ToList(); var matchStats = _statService.GenerateMatchStats(tours.First().TourId); var matchStatsVieModel = new MatchStatsViewModel(tours, matchStats); return(View(matchStatsVieModel)); }
// GET: Experts public ActionResult Index() { var tours = _tourService.GetLastTournamentTours(); var results = _predictionService.GenerateExpertsInfo(); var resultsTable = new ResultsTableViewModel(tours.Select(t => t.GetDto()).ToList(), results); return(View(resultsTable)); }