//[ProducesResponseType(StatusCodes.Status201Created, Type = typeof(BookDto))] public async Task <ActionResult> GetCategoriesOfBook(Guid bookId, CancellationToken ct) { await _bookCategoryService.GetBookCategoryByIdAsync(bookId, ct); return(Ok()); }
public async Task <IActionResult> GetBookCategoryById(Guid id) { var bookCategory = await _bookCategoryService.GetBookCategoryByIdAsync(id); return(Ok(bookCategory)); }