private void btn_GetListBooks_Click(object sender, EventArgs e)
        {
            DataTable dataTable = new DataTable();

            bookList = bookService.ListBooks();
            dataGridView_Books.DataSource = bookList;
        }
        //public BookDataService(BookOfKnowledge.Service.Book.BookService bookService)
        //{
        //    _bookService = new Service.Book.BookService();
        //}

        public List <Models.Book.Book> ListBooks()
        {
            return(_bookService.ListBooks());
        }
Exemplo n.º 3
0
 public List <BookOfKnowledge.Models.Book.Book> ListBooks()
 {
     return(_bookService.ListBooks());
 }
Exemplo n.º 4
0
        public IActionResult Index()
        {
            var bookList = bookService.ListBooks().ToList();

            return(View(bookList));
        }