Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // The Controller Action when data is posted in the Uri:
- // POST: api/PostUri
- [HttpPost]
- [ActionName("PostUri")]
- public Result Post([FromUri]Data data)
- {
- // Do something..
- }
- // The Controller Action when request is posted with data in the Body:
- // POST: api/MyController/PostBody
- [HttpPost]
- [ActionName("PostBody")]
- public Result PostBody(Data data)
- {
- return Post(data);
- }
Add Comment
Please, Sign In to add comment