Exemplo n.º 1
0
        static void Main(string[] args)
        {
            NCustomer musteri1 = new NCustomer();

            musteri1.CustomerId      = 1;
            musteri1.CustomerName    = "Ulaş";
            musteri1.CustomerSurname = "Bozkurt";

            NCustomer musteri2 = new NCustomer();

            musteri2.CustomerId      = 2;
            musteri2.CustomerName    = "Nihat";
            musteri2.CustomerSurname = "Bozkurt";



            CustomerManager _customerManager = new CustomerManager();

            NCustomer[] musteriler = new NCustomer[] { musteri1, musteri2 };

            foreach (var items in musteriler)
            {
                _customerManager.AddCustomer(items);
            }

            _customerManager.DeleteCustomer(musteri2);


            Console.ReadLine();
        }
Exemplo n.º 2
0
 public void AddCustomer(NCustomer customer)
 {
     Console.WriteLine(customer.CustomerName);
     Console.WriteLine(customer.CustomerSurname);
     Console.WriteLine(customer.CustomerId);
     Console.WriteLine("Eklendi");
     Console.WriteLine("----------------");
 }
Exemplo n.º 3
0
 public void DeleteCustomer(NCustomer customer)
 {
     Console.WriteLine(customer.CustomerId + " ' ID li kayıt Silindi");
     Console.WriteLine("----------------");
 }