Created
July 20, 2019 16:33
-
-
Save ntakouris/8d1863c485726edc4606d92c08f451f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var post = new Post | |
| { | |
| Id = postId, | |
| Name = request.Name | |
| }; | |
| var updated = _postService.UpdatePost(post); | |
| if (updated) | |
| return Ok(post); | |
| return NotFound(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment