Exemple #1
0
        public IActionResult GetTournamentBracket(int tournamentId)
        {
            var            gameFixture = _playedGamesService.GetPlayedGamesWithAllTablesByTournamentId(tournamentId);
            BracketManager bm          = new BracketManager(gameFixture);

            return(Json(bm.GenerateBracketObject()));
        }
Exemple #2
0
 public IActionResult Index(int tournamentId)
 {
     return(View(_mapper.Map <List <PlayedGamesListAllDto> >(_playedGamesService.GetPlayedGamesWithAllTablesByTournamentId(tournamentId))));
 }