Created
March 24, 2017 16:16
-
-
Save rionmonster/b0d06347922cc0cd604d0ea7049b3dae to your computer and use it in GitHub Desktop.
Example
This file contains 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
[HttpPost] | |
[SwaggerOperation("create-member")] | |
[SwaggerResponse(200)] | |
[SwaggerResponse(400, Description = "Invalid Parameters")] | |
public void Create(MemberData member) | |
{ | |
// This works | |
} | |
[HttpPost] | |
[SwaggerOperation("create-member")] | |
[SwaggerResponse(200)] | |
[SwaggerResponse(400, Description = "Invalid Parameters")] | |
public void Create([FromBody]MemberData member) | |
{ | |
// This doesn't work | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment