private static void AddSerie() { Console.WriteLine("Add a new serie"); foreach (int i in Enum.GetValues(typeof(Genre))) { Console.WriteLine("{0}-{1}", i, Enum.GetName(typeof(Genre), i)); } Console.Write("Select the category between the options above: "); int genryEntry = int.Parse(Console.ReadLine()); Console.Write("Inform the Serie Title: "); string titleEntry = Console.ReadLine(); Console.Write("Inform the Serie release year: "); int yearEntry = int.Parse(Console.ReadLine()); Console.Write("Inform the Serie description: "); string descriptionEntry = Console.ReadLine(); Serie newSerie = new Serie(id: repository.NextId(), genre: (Genre)genryEntry, title: titleEntry, year: yearEntry, description: descriptionEntry); repository.Add(newSerie); }