/* public IActionResult Update(Book bookIn) * { * _chapterService.Update(bookIn); * return NoContent(); * } */ public async Task <IActionResult> UpdateChapter(string id, [FromBody] Chapter book) { var isUpdated = await _chapterService.UpdateChapter(id, book); if (isUpdated == false) { return(BadRequest()); } return(Ok()); }