Esempio n. 1
0
        internal void historialList()
        {
            Console.WriteLine();
            Console.WriteLine($"Historial list...");
            LibraryStudentsRepository repository = new LibraryStudentsRepository();
            var historialList = repository.GetHistorialList();

            Console.WriteLine();
            foreach (var book in historialList)
            {
                Console.WriteLine($" {book.BookId} \t{book.Title} \t\t{book.Genre} \t\t{book.Year} \t{book.Author} \tBorroed by: {book.StudentName} \tTotal time: {book.TotalTimeBorrowed}");
            }
            Console.WriteLine();
            Console.WriteLine("Press any key to continue...");
            Console.ReadLine();
        }