Esempio n. 1
0
 public void SignUp(Customer customer)
 {
     if (customerValidationService.ValidateCustomer(customer))
     {
         Console.WriteLine(customer.FirstName + " " + customer.LastName + " , you have signed up successfully.");
     }
     else
     {
         throw new Exception("User validation has failed, you can not sign up.");
     }
 }
Esempio n. 2
0
 public void SignUp(Customer customer)
 {
     if (customerValidationService.ValidateCustomer(customer))
     {
         Console.WriteLine(customer.FirstName + " " + customer.LastName + " , Başarıyla Kaydoldunuz.");
     }
     else
     {
         throw new Exception("Kullanıcı doğrulaması başarısız oldu, kaydolamazsınız");
     }
 }