public void CustomerProfile() { Console.Clear(); Console.WriteLine("* Visa kundbild *"); var input = Validation.InputInt("Kundnummer eller kontonummer? "); var customer = BankSearch.GetCustomerByAccountOrCustomerId(_customers, input); if (customer == null) { return; } Console.Clear(); customer.CustomerFullDetails(); Console.ReadLine(); }
public void RemoveAccountFromCustomer() { Console.Clear(); Console.WriteLine("* Ta bort konto *"); var input = Validation.InputInt("Kundnummer eller kontonummer? "); var customer = BankSearch.GetCustomerByAccountOrCustomerId(_customers, input); if (customer == null) { return; } Console.WriteLine(); Console.WriteLine($"Konton för kund #{customer.CustomerId} : {customer.Name}"); Console.WriteLine("-------------------------------------------------------------"); customer.CustomerAccountsDetails(); Console.WriteLine(); var accountNumber = Validation.InputInt("Vilket konto vill du ta bort? "); customer.DeleteBankAccount(accountNumber); Console.ReadLine(); }