Пример #1
0
        public TournamentSummaryViewModel(TournamentModel selectedTournament)
        {
            finishedTournament                  = selectedTournament;
            finishedTournament.Rounds           = SqlDataHandler.GetRoundsByTournament(finishedTournament.Id);
            finishedTournament.TournamentPrizes = SqlDataHandler.GetDataByTournament <PrizeModel>(selectedTournament.Id, "dbo.SP_GetPrizesByTournament");



            _tournamentName = finishedTournament.TournamentName;
            _trophyTitle    = $"{DateTime.Now.Year} Winner";



            WireUpTournamentOrder();



            WireUpTournamentAwards();



            WireUpHighestScoringGame();



            _participatingTeams = SqlDataHandler.GetTeamsByTournament(finishedTournament);
            _selectedTeam       = _participatingTeams[0];
            _teamMembers        = _selectedTeam.TeamMembers;
        }