示例#1
0
        // get book
        public override Task <Book> GetBook(GetBookRequest request, ServerCallContext context)
        {
            Book book = _shelfBookRepository.GetBook(request.Shelf, request.Book);

            return(Task.FromResult(book));
        }
示例#2
0
        public IActionResult GetBook(long shelfId, long bookId)
        {
            Book book = _shelfBookRepository.GetBook(shelfId, bookId);

            return(Ok(book));
        }