Ejemplo n.º 1
0
        //Delete Existing content
        private void DeleteExistingContent()
        {
            Console.Clear();

            DisplayAllContent();

            //Get the mealname they wanted to remove
            Console.WriteLine("Enter the title of the content you'd like to remove:");

            string input = Console.ReadLine();

            //Call the deleted method
            bool wasDeleted = _contentRepo.RemoveContentFromList(input);

            //If the content was deleted, say so.
            if (wasDeleted)
            {
                Console.WriteLine("The content was successfully deleted.");
            }
            else
            {
                Console.WriteLine("The content could not be deleted.");
            }
            //Otherwise state it could not be deleted.
        }