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

            return(View(viewModel));
        }
Ejemplo n.º 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));
        }