Exemplo n.º 1
0
 public bool Customer_Create(string name, int id, int pin)
 {
     if (!bank.BOOL_CustomerIdAvailable(id))
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("\nError: That ID is already in use.");
         Thread.Sleep(1500);
         return(false);
     }
     if (pin.ToString().Length != 4)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("\nError: Pin must be 4 digits long.");
         Thread.Sleep(1500);
         return(false);
     }
     return(bank.CreateCustomer(name, id, pin));
 }