Exemple #1
0
 public void Add(string GameName, ICampaignManager campaign)
 {
     foreach (var game in games)
     {
         if (game.GameName == GameName)
         {
             campaign.Add(game);
         }
     }
 }
Exemple #2
0
 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);
         }
     }
 }