예제 #1
0
        // GET Book/Index
        public IActionResult Index()
        {
            List <Book> books = _library.GetAllBooks();

            return(View(books));
        }
예제 #2
0
        public List <Book> GetAllBooks()
        {
            List <Book> results = _library.GetAllBooks();

            return(results);
        }