// get book public override Task <Book> GetBook(GetBookRequest request, ServerCallContext context) { Book book = _shelfBookRepository.GetBook(request.Shelf, request.Book); return(Task.FromResult(book)); }
public IActionResult GetBook(long shelfId, long bookId) { Book book = _shelfBookRepository.GetBook(shelfId, bookId); return(Ok(book)); }