private void CreateNewShow() { Console.WriteLine("Enter new show title:"); string title = Console.ReadLine(); Console.WriteLine("Enter genre number:\n" + "1. Science Fiction\n" + "2. Romance\n" + "3. Action"); int genreInput = ParseIntput(); Genre genre; switch (genreInput) { case 1: genre = Genre.ScienceFiction; break; case 2: genre = Genre.Romance; break; default: genre = Genre.Action; break; } Console.WriteLine("Enter show runtime in minutes: "); float length = ParseFloatPut(); StreamingContent newShow = new StreamingContent(title, genre, length); _showRepo.AddContentToList(newShow); Console.WriteLine($"\"{title}\" added to list."); Console.ReadLine(); }
public void RemoveContentFromList(StreamingContent content) { _listOfContent.Remove(content); }
public void AddContentToList(StreamingContent content) { _listOfContent.Add(content); }