示例#1
0
 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();
 }
示例#2
0
 public static List <Team> CreateTeamList(Awesome.ApiIntegration.JsonTeamResult.JsonTeamResult teams)
 {
     Team[] source = teams.teams;
     if (source == null)
     {
         return(null);
     }
     return(source.ToList <Team>());
 }