public void RunUI() { bool keepRunning = true; LogIn(); while (keepRunning) { Console.Clear(); Console.WriteLine("Welcome to the BookLover API, what would you like to do?\n" + "1.Browse or add books\n" + "2.Browse or add authors\n" + "3.Browse or add reviews\n" + "4.Browse or add bookshelves\n" + "5.Go to User Profile\n" + "0.Exit\n"); string userSelection = Console.ReadLine(); switch (userSelection) { case "1": BookMenu bookMenu = new BookMenu(); bookMenu.RunBookMenu(); break; case "2": AuthorMenu authorMenu = new AuthorMenu(); authorMenu.RunAuthorMenu(); break; case "3": BookReviewMenu bookReviewMenu = new BookReviewMenu(); bookReviewMenu.RunBookReviewMenu(); break; case "4": BookshelfMenu shelfMenu = new BookshelfMenu(); shelfMenu.RunBookshelfMenu(); break; case "5": UserProfileMenu profileMenu = new UserProfileMenu(); profileMenu.RunUserProfileMenu(); break; case "0": keepRunning = false; break; default: Console.Clear(); Console.WriteLine("Invalid entry"); break; } } }
public void GetOwnersBookshelves() { BookshelfMenu shelfMenu = new BookshelfMenu(); shelfMenu.BrowseBookshelvesByOwner(); }