public ActionResult Index()
        {
            FootballApiClient    client            = new FootballApiClient();
            JsonGroupStageResult groupStageMatches = client.GetGroupStageMatches();
            JsonTeamResult       teams             = client.GetTeams();
            AdminViewModel       viewModel         = new AdminViewModel(teams, groupStageMatches);

            return(View(viewModel));
        }
Beispiel #2
0
        public ActionResult Index(string userName)
        {
            FootballApiClient    client            = new FootballApiClient();
            JsonGroupStageResult groupStageMatches = client.GetGroupStageMatches();
            JsonTeamResult       teams             = client.GetTeams();

            MyPageViewModel currentGamlePage = new MyPageViewModel(teams, groupStageMatches, userName);

            return(View(currentGamlePage));
        }