public IActionResult DeleteAuthor(Guid id) { if (!_authorService.AuthorExists(id)) { return(NotFound()); } if (!_authorService.Remove(id)) { throw new Exception($"Deleting the author {id} failed on save"); } return(NoContent()); }
public ActionResult DeleteConfirmed(Int32 id) { _AuthorAppService.Remove(id); return(RedirectToAction("GetAll")); }