public void Add(string GameName, ICampaignManager campaign) { foreach (var game in games) { if (game.GameName == GameName) { campaign.Add(game); } } }
public void CompainGame(List <Game> games, string GameName, ICampaignManager campaign) { foreach (var game in games) { if (game.GameName == GameName) { int ilkFiyat = game.GamePrice; campaign.Add(game); Console.WriteLine(game.GameName + " " + "Ürününüzün ilk fiyatı: " + ilkFiyat + "\n" + "İndirimli Fiyatı : " + game.GamePrice); } } }