// GET: Tournament/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var tournament = await _tournamentService.DetailsTournament(id); if (tournament == null) { return(NotFound()); } return(View(tournament)); }