Exemplo n.º 1
0
        public IActionResult GetAllPlayersOfTournament(Guid tournamentId)
        {
            var tournament = _tournamentService.GetAllPlayersOfTournament(tournamentId);

            if (tournament == null)
            {
                return(NotFound());
            }
            return(Ok(tournament.players));
        }