public void GetList(Games games, Player player) { List <Games> list = new List <Games> { games }; var query = _gameDal.GetList(list); foreach (var x in query) { Console.WriteLine(player.PlayerName + " : " + x.GameName + " Price : " + games.GamePrice); } }