// GET: Games/Details/5 public async Task <IActionResult> Details(int?id) { var repo = new ShowViews(_context); if (id == null) { return(NotFound()); } var games = await repo.ListGameWithPlayers(id); if (games == null) { return(NotFound()); } return(View(games)); }
public HomeController(ShowViews showViews) { _showViewsRepo = showViews; }
public PlayersController(ShowViews showViews) { _showViews = showViews; }
public RoundController(ShowViews showViews) { _showViewsRepo = showViews; }