public IActionResult Update(int id, string name)
        {
            ListBookResponse response = new ListBookResponse();

            response.Id       = id;
            response.BookName = name;
            return(View(response));
        }
        public async Task <IActionResult> ListBook()
        {
            List <Book> books = await _bookService.ListActiveOnes();

            List <ListBookResponse> allResponses = new List <ListBookResponse>();

            foreach (Book book in books)
            {
                ListBookResponse response = new ListBookResponse();
                response.Id         = book.Id;
                response.BookName   = book.Name;
                response.AuthorId   = book.AuthorId;
                response.AuthorName = book.Author.Name;
                response.TypeId     = book.TypeId;
                response.TypeName   = book.Type.Name;
                allResponses.Add(response);
            }
            return(Ok(allResponses));
        }