Exemple #1
0
        public ActionResult DeleteAuthor(Guid authorId)
        {
            var authorFromRepo = _restApiService.GetAuthor(authorId);

            if (authorFromRepo == null)
            {
                return(NotFound());
            }
            _restApiService.DeleteAuthor(authorFromRepo);
            _restApiService.Save();

            return(NoContent());
        }