Created
July 20, 2019 16:32
-
-
Save ntakouris/1a1e3591b62637df1cd34a80e7a249dc 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