public void EditMenu() { Console.WriteLine("Press 1. If you want to edit passengers info\nPress 2. If you want to edit flights info"); ConsoleKeyInfo key = Console.ReadKey(); Console.Clear(); switch (key.Key) { case ConsoleKey.D1: case ConsoleKey.NumPad1: airport.EditPassenger(); break; case ConsoleKey.D2: case ConsoleKey.NumPad2: airport.EditFlight(); break; } Console.ReadKey(); Menu(); }