Add() public method

public Add ( GameProject.Concrete.Campaign campaign ) : void
campaign GameProject.Concrete.Campaign
return void
        public int SalesCampaign(Player player)
        {
            CampaignManager campaignManager = new CampaignManager();
            int             price           = campaignManager.Add(player);

            return(price);
        }
        public void CampaignControl()
        {
            Console.WriteLine("-----------------");
            Console.WriteLine("-----------------");
            Console.WriteLine("Kampanya İşlemleri Paneli");
            Console.WriteLine("-----------------");
            Console.WriteLine("Lütfen Yapmak İstediğiniz İşlem Numarasını Giriniz...");
            Console.WriteLine("1 - Kampanyaları Listele");
            Console.WriteLine("2 - Kampanya Ekle");
            Console.WriteLine("3 - Kampanya Sil");
            int returnNo = Convert.ToInt32(Console.ReadLine());

            switch (returnNo)
            {
            case 1:
                campaignManager.GetAll();
                First();
                break;

            case 2:
                Campaigns campaign = new Campaigns();
                Console.WriteLine("Kampanya Adı: ");
                campaign.CampaignName = Console.ReadLine();
                Console.WriteLine("Kampanya Kategorisi: ");
                campaign.Category = Console.ReadLine();
                Console.WriteLine("Kampanya İndirim Oranı: ");
                campaign.DiscountRate = Convert.ToDouble(Console.ReadLine());
                campaign.Active       = true;
                campaign.Id           = 2;
                campaignManager.Add(campaign);
                First();
                break;

            case 3:
                Console.WriteLine("Kampanya Id Giriniz: ");
                int       DeleteId         = Convert.ToInt32(Console.ReadLine());
                Campaigns campaignToDelete = campaignManager._campaignList.SingleOrDefault(c => c.Id == DeleteId);
                campaignManager.Delete(campaignToDelete);
                First();
                break;

            default:
                Console.WriteLine("Bilinmeyen İşlem! Tekrar Deneyin...");
                First();
                break;
            }
        }