コード例 #1
0
ファイル: Program.cs プロジェクト: Sub-Z3r0/LibraryAPI
        private static void LibraryIndexPicker(string choice)
        {
            indexController = new IndexController();
            switch (choice)
            {
            case "1":
                Console.WriteLine("All the books available in the Library.");
                indexController.GetAllBooks();
                break;

            case "2":
                indexController.CreateBook();
                break;

            case "3":
                Console.WriteLine("Select a user.");
                indexController.SelectUsers();
                break;

            default:
                Console.WriteLine("Not in the list");
                break;
            }
        }