public ActionResult Index() { FootballApiClient client = new FootballApiClient(); JsonGroupStageResult groupStageMatches = client.GetGroupStageMatches(); JsonTeamResult teams = client.GetTeams(); AdminViewModel viewModel = new AdminViewModel(teams, groupStageMatches); return(View(viewModel)); }
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)); }