public static void Operation() { var newUser = CreateUserMenu.Handle(); DisplayUserMenu.Handle(newUser); Printer.ReadLine(); }
public static User Handle() { while (true) { var userInput = CreateUserMenu.Display(); if (CreateUserValidator.Validate(userInput)) { Console.WriteLine("Username Accepted"); return(new User { Username = userInput }); } } }