public IActionResult GetGames() { var games = gameDataAccess.GetGames(); var gamesModels = games.Select(g => ViewModelMapper.MapGameToPresentation(g)); return(Ok(gamesModels)); }
//CRUD BLL For Games public List <Game> GetGames() { List <Game> getGames = gameDataAccess.GetGames(); return(getGames); }