private static void OpenAccount() { Console.WriteLine("Specify the sum to create an account: "); decimal sum = Convert.ToDecimal(Console.ReadLine()); Console.WriteLine("Select an account type: \n 1. On-Demand \n 2. Deposit"); var type = Enum.Parse <AccountType>(Console.ReadLine() !); _bank1.OpenAccount(new OpenAccountParameters { Amount = sum, Type = type, AccountCreated = NotifyAccountCreated }); }