static void ViewAllBooks() { Console.WriteLine("\nThese are all the books in the library."); for (int i = 0; i < Library.Count(); i++) { Console.WriteLine("--> " + Library.ElementAt(i).Title + " by " + Library.ElementAt(i).Author.FirstName + " " + Library.ElementAt(i).Author.LastName); } }
static void ViewBookBag() { Console.WriteLine("\nThese are all the books in your book bag."); for (int i = 0; i < BookBag.Count; i++) { Console.WriteLine("--> " + BookBag[i].Title + " by " + Library.ElementAt(i).Author.FirstName + " " + Library.ElementAt(i).Author.LastName); } }