public IActionResult UpdateAuthor(Guid authorId, AuthorForUpdateDto author) { if (!_restApiService.AuthorExists(authorId)) { return(NotFound()); } var authorFromRepo = _restApiService.GetAuthor(authorId); _mapper.Map(author, authorFromRepo); _restApiService.UpdateAuthor(authorFromRepo); _restApiService.Save(); return(NoContent()); }