static void Main(string[] args) { var cinemaManager = new CinemaManager(); var input = "n"; while (input != "y") { Console.WriteLine("Choose:"); Console.WriteLine(" 1-Buy ticket"); Console.WriteLine(" 2-Edit"); Console.WriteLine(" 3-Display next playing movies"); Console.WriteLine(" 4-Overview"); Int32.TryParse(Console.ReadLine(), out int choice); switch (choice) { case 1: cinemaManager.BuyTicket(); break; case 2: Edit(cinemaManager); break; case 3: cinemaManager.DisplayNextMoviesPlaying(); break; case 4: Overview(cinemaManager); break; default: Console.WriteLine("Invalid input"); break; } Console.WriteLine("Do you want to stop? Type y-Yes of some other key"); if (Console.ReadLine().ToLower() == "y") { break; } } }