public async Task <IActionResult> CreateViewModel() { viewModel.Leagues = await leagueRepository.GetLeagues(); viewModel.Matches = await matchRepository.GetMatches(); viewModel.Tips = await tipRepository.GetTips(); viewModel.Roles = await accountRepository.GetRoles(); viewModel.Predictions = await predictionRepository.GetPredictionsAll(); return(View("Index", viewModel)); }
public List <Tip> GetTips() { return(tipRepository.GetTips()); }