static void searchmenu() { int option; ask: Console.BackgroundColor = ConsoleColor.Blue; Console.WriteLine("Press 9 to GO BACK\n"); Console.ResetColor(); Console.WriteLine("\n Choose an option to search by:\n 1-PLATE\n 2-OWNER"); option = Convert.ToInt32(Console.ReadLine()); if (option == 9) { Console.Clear(); return; } switch (option) { case 1: Console.WriteLine("\nEnter Plate: "); string plate = Console.ReadLine().ToUpper(); listVehicles.Show(plate); break; case 2: Console.WriteLine("\nEnter Owners Name: "); string Owner = Console.ReadLine().ToUpper(); listVehicles.SearchOwner(Owner); break; default: Console.Clear(); Console.WriteLine("\n*********** INVALID INPUT.\t***********\n"); goto ask; } }