public async Task <ActionResult <Bookshelf> > AddItemToBookshelf(Book book) { var bookshelf = await _repository.AddBookToBookshelfAsync(book); return(Ok(bookshelf)); }
public async Task <ActionResult <Bookshelf> > AddItemToBookshelf(Book book) { var bookshelf = await _repository.AddBookToBookshelfAsync(book); return(CreatedAtAction("GetBookshelfItemById", new { id = bookshelf.Id }, bookshelf)); }