private void Delete() { string choice = null; string msg = ""; do { choice = UserInterface(4); switch (choice.ToUpper()) { case "1": customerView.Delete(); msg = "\n----------------------------> \nPress a key to continue!"; break; case "2": accountView.Delete(); msg = "\n----------------------------> \nPress a key to continue!"; break; case "X": msg = "\nChanging to customer menu\nPress a key to continue"; break; default: msg = "Error occured - Press Enter and start over!"; break; } Console.WriteLine(msg); Console.ReadKey(); }while (choice.ToUpper() != "X"); }