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));
        }
Exemplo n.º 2
0
 public List <Tip> GetTips()
 {
     return(tipRepository.GetTips());
 }