Esempio n. 1
0
        public static void PrintAnyList()
        {
            StandardMessages.SelectList("List");
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                PrintListsFromDB.PrintBooksList();
                break;

            case "2":
                PrintListsFromDB.PrintMoviesList();
                break;

            case "3":
                PrintMembersFromDB.PrintMembersList();
                break;

            default:
                CommonClasses.StandardMessages.InvalidOption();
                break;
            }
        }
Esempio n. 2
0
        public static void DeleteSwitch()
        {
            StandardMessages.SelectList("Delete");
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                DeleteItem.DeleteBook();
                break;

            case "2":
                DeleteItem.DeleteMovie();
                break;

            case "3":
                SelectMemberById.DeleteMember();
                break;

            default:
                CommonClasses.StandardMessages.InvalidOption();
                break;
            }
        }