Example #1
0
        public IActionResult GetGames()
        {
            var games       = gameDataAccess.GetGames();
            var gamesModels = games.Select(g => ViewModelMapper.MapGameToPresentation(g));

            return(Ok(gamesModels));
        }
Example #2
0
        //CRUD BLL For Games
        public List <Game> GetGames()
        {
            List <Game> getGames = gameDataAccess.GetGames();

            return(getGames);
        }