Exemplo n.º 1
0
        //[ProducesResponseType(StatusCodes.Status201Created, Type = typeof(BookDto))]
        public async Task <ActionResult> GetCategoriesOfBook(Guid bookId, CancellationToken ct)
        {
            await _bookCategoryService.GetBookCategoryByIdAsync(bookId, ct);

            return(Ok());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetBookCategoryById(Guid id)
        {
            var bookCategory = await _bookCategoryService.GetBookCategoryByIdAsync(id);

            return(Ok(bookCategory));
        }