示例#1
0
 public void UserAccountCreationUI(IUser user)
 {
     view.AskForNewAccountType();
     if (Enum.TryParse(Console.ReadLine(), out AccountType type))
     {
         SqlRunner.CreateNewAccountForUser(user, type);
     }
     else
     {
         view.DisplayInvalidTypeMessage();
         Console.ReadKey();
     }
 }