public AdminViewModel(Awesome.ApiIntegration.JsonTeamResult.JsonTeamResult teams, Awesome.ApiIntegration.JsonGroupStageResult.JsonGroupStageResult groupStageMatches) { this.ReportedResult = new Awesome.Models.ReportedResult(groupStageMatches); this.Teams = TournamentUtility.CreateTeamList(teams); this.Result = UserManager.GetResult(); this.Users = UserManager.GetUsers(); }
public static List <Team> CreateTeamList(Awesome.ApiIntegration.JsonTeamResult.JsonTeamResult teams) { Team[] source = teams.teams; if (source == null) { return(null); } return(source.ToList <Team>()); }