Ejemplo n.º 1
0
        static void BookSearchMenu()
        {
            Console.Clear();

            Console.WriteLine("Input search string or just enter for all books...");
            var search       = Console.ReadLine();
            var searchResult = new Librarian.Librarian().GetBooksBySearchstring(search);

            foreach (var bookResult in searchResult.BookResults)
            {
                var book = bookResult.Book;
                Console.WriteLine($"({bookResult.Score})Title: {book.Title} - {book.Id.StringId} - ${book.Price}");
                Console.WriteLine($"Genre:({book.Genre})");
                Console.WriteLine($"Author: {book.Author}");
                Console.WriteLine("");
            }
            Console.ReadKey();
        }
Ejemplo n.º 2
0
 public ReservationSubscriber(Librarian.Librarian librarian)
 {
     _librarian = librarian;
 }