public ActionResult DeleteAuthor(Guid authorId) { var authorFromRepo = _restApiService.GetAuthor(authorId); if (authorFromRepo == null) { return(NotFound()); } _restApiService.DeleteAuthor(authorFromRepo); _restApiService.Save(); return(NoContent()); }