public void RunMenu() { int choice = 0; do { Menu m = new Menu(); choice = m.Print_2(); switch (choice) { case (int)MenuOptions.SearchById: movieServices.GetById(); break; case (int)MenuOptions.SearchByName: movieServices.GetByName(); break; case (int)MenuOptions.PrintAll: movieServices.GetAllMovies(); break; case (int)MenuOptions.Exit: Console.WriteLine("Thanks for visit. Please Visit again !!!!"); break; default: Console.WriteLine("Invalid Option"); break; } Console.WriteLine("Press Enter to continue......"); Console.ReadLine(); Console.Clear(); } while (choice != (int)MenuOptions.Exit); }