public async Task <IActionResult> SearchOnGoodreadsByIsbn(string query)
        {
            var booksClient = GoodreadsHelper.GetClient().Books;
            //isbn: 0765326353
            var book = await booksClient.GetByIsbn(query);

            return(Respond(book));
        }
        public async Task <IActionResult> SearchOnGoodreadsById(int bookId)
        {
            //check book in database first
            //var existingBook = this.bookService.GetByBookreadId(bookId);
            //if (existingBook != null)
            //{
            //    return Respond(existingBook);
            //}

            //check book online
            var booksClient = GoodreadsHelper.GetClient().Books;
            var book        = await booksClient.GetByBookId(bookId);

            //add book to database
            //var newBook = AutoMapper.Mapper.Map<BookViewModel>(book);
            //await AddBook(newBook);

            return(Respond(book));
        }
        public async Task <IActionResult> SearchOnGoodreads(string query, int page)
        {
            var booksClient = GoodreadsHelper.GetClient().Books;
            //isbn: 0765326353
            // var book = await BooksClient.GetByIsbn(searchText);
            var response = await booksClient.Search(query, page);

            //var list = _mapper.Map<List<BookViewModel>>(response.List);
            //var pagination = response.Pagination;

            //var bestBooks = result.List.Select(t => t.BestBook).ToList();
            //var booksBatches = Utilities.Split(bestBooks, 5);

            return(Respond(response));

            /*return Respond(new {
             *  List = list,
             *  Pagination = pagination
             * });*/
        }