예제 #1
0
 public void Add(Customer customer)
 {
     if (_customerCheckService.CheckCustomer(customer))
     {
         Console.WriteLine(customer.FirstName + " " + customer.LastName + " is added to the gaming platform as " + customer.NickName);
     }
     else
     {
         throw new Exception("Not a valid customer");
     }
 }
 public void Add(Customer customer)
 {
     //Mernis Doğrulaması
     if (_customerCheckService.CheckCustomer(customer))
     {
         Console.WriteLine("Oyuncu eklendi: " + customer.FirstName);
     }
     else
     {
         Console.WriteLine("Oyuncu eklenemedi: " + customer.FirstName);
     }
 }