Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 public async Task DeleteAsync(Guid id) => await _bookChaptersService.RemoveAsync(id);