private static Serie UserOptionInsert() { Serie newSerie = null; int genreNumber = 0; int year = 0; string title = ""; string desc = ""; Console.WriteLine("Create a new serie"); foreach (int item in Enum.GetValues(typeof(Genre))) { Console.WriteLine("{0}-{1}", item, Enum.GetName(typeof(Genre), item)); } Console.Write("Type the genre: "); genreNumber = int.Parse(Console.ReadLine()); Console.Write("Write the title: "); title = Console.ReadLine(); Console.Write("Write the year of begin: "); year = int.Parse(Console.ReadLine()); Console.Write("Write a description: "); desc = Console.ReadLine(); newSerie = new Serie(id: repository.NextID(), genre: (Genre)genreNumber, title: title, year: year, description: desc); return(newSerie); }