private void TransferOption(OptionsList transferOptions, Customer customer, out int accountSelection, out double amount) { do accountSelection = _console.ReadFromOptions( "Transfer Options", "Select an Option", "Invalid Option", transferOptions, false ); while (!transferOptions.IsValid(accountSelection)); amount = _console.ReadValidDouble("Enter the amount", "Invalid amount"); try { switch (accountSelection) { case 1: customer.TransferFunds(AccountType.Saving, AccountType.Checking, amount); break; case 2: customer.TransferFunds(AccountType.Checking, AccountType.Saving, amount); break; } _console.WriteASuccessLine("Transfer complete"); } catch (Exceptions.InsufficientFunds) { _console.WriteAErrorLine("Insufficient Funds"); } }