public async Task Start() { while (true) { var selection = PromptMainMenu(); TextIO.Clear(); switch (selection) { case "1": var searchTerm = PromptSearch(); var books = await FetchSearch(searchTerm); PrintBooks(searchTerm, books); break; case "2": TextIO.Clear(); goto Exit; default: TextIO.Print("Could not undestand your input. Please try again."); break; } } Exit : EnvExit.Exit(0); }
void PrintWelcome() { TextIO.Print("Welcome to Book Search!"); }