예제 #1
0
        public IActionResult Next(int page = 1)
        {
            page = page < 1 ? 1 : page;

            var nextGames = new GameListingVM
            {
                Games = this.games.Next(page),
                Page  = new Pagination
                {
                    TotalCount  = this.games.TotalNextGamesCount(),
                    CurrentPage = page
                }
            };

            return(View(nextGames));
        }
예제 #2
0
        public IActionResult All(int page = 1)
        {
            page = page < 1 ? 1 : page;

            var allGames = new GameListingVM
            {
                Games = this.games.All(page),
                Page  = new Pagination
                {
                    TotalCount  = this.games.TotalGamesCount(),
                    CurrentPage = page
                }
            };

            return(View(allGames));
        }