コード例 #1
0
        // 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));
        }
コード例 #2
0
 public HomeController(ShowViews showViews)
 {
     _showViewsRepo = showViews;
 }
 public PlayersController(ShowViews showViews)
 {
     _showViews = showViews;
 }
コード例 #4
0
 public RoundController(ShowViews showViews)
 {
     _showViewsRepo = showViews;
 }