// ITournamentService tournamentService,
        // public TournamentController(
        //     ICommandDispatcher commandDispatcher) : base(commandDispatcher)
        // {
        //     // _tournamentService = tournamentService;
        // }

        // [HttpGet]
        public async Task <IActionResult> Index(string message, string status)
        {
            ViewBag.StatusCode = status;
            ViewBag.Title      = "Tournaments";
            ViewBag.Message    = message;
            var tournament = await _tournamentService.BrowseAsync();

            return(View(tournament));
        }
Exemple #2
0
        public async Task <IActionResult> Get()
        {
            var tournament = await _tournamentService.BrowseAsync();

            return(Ok(tournament));
        }