public static void ChooseAnOption() { while (true) { Console.WriteLine(divider); Console.WriteLine("What do you want to do?"); Console.WriteLine(" [1] Add a new customer"); Console.WriteLine(" [2] Remove a customer"); Console.WriteLine(" [3] Update a customer"); Console.WriteLine(" [4] View all customers"); Console.WriteLine(" [5] Exit program"); while (true) { string chosen = Input("Input [#]: "); if (chosen == "1") { Console.WriteLine(divider); AddCustomerOption(); break; } else if (chosen == "2") { Console.WriteLine(divider); if (CustomerRepository.GetList().Count > 0) { RemoveCustomerOption(); } else { Console.WriteLine("You need to add a customer first."); Input("Press enter/return "); } break; } else if (chosen == "3") { Console.WriteLine(divider); if (CustomerRepository.GetList().Count > 0) { UpdateCustomerOption(); } else { Console.WriteLine("You need to add a customer first."); Input("Press enter/return "); } break; } else if (chosen == "4") { Console.WriteLine(divider); if (CustomerRepository.GetList().Count > 0) { ViewCustomersOption(); } else { Console.WriteLine("You need to add a customer first."); Input("Press enter/return "); } break; } else if (chosen == "5") { Environment.Exit(1); } } } }