public async Task <IActionResult> DeleteBookChapterAsync(Guid id) { var chapter = await _bookChaptersService.RemoveAsync(id); if (chapter == null) { return(NotFound()); } //return CreatedAtAction("removed!",new { id, },chapter); return(Ok()); }
public async Task DeleteAsync(Guid id) => await _bookChaptersService.RemoveAsync(id);