public static void SearchByGenre() { Console.Write("search for genre: "); string genre = Console.ReadLine(); Console.WriteLine("\nMovies related to: " + genre); List <Movie> movieByGenre = MovieManager.GenreMovieList(genre); foreach (Movie item in movieByGenre) { Console.WriteLine("\n" + item.Title); } if (movieByGenre.Count == 0) { Console.WriteLine("\nNo result related to '" + genre + "'\nTry something else.\n"); } Console.WriteLine("\n\nPress any key to continue..."); Console.ReadKey(); Console.Clear(); }