Created
January 25, 2016 22:17
-
-
Save wsrzx/22669660832b7134d19a to your computer and use it in GitHub Desktop.
Multiple HttpPost method in Web API controller
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
public class MyController : ApiController | |
{ | |
[HttpPost] | |
[ActionName("myfirstroute")] | |
public string MyFirstPostMethod(JObject userData) | |
{ | |
// do your thing | |
} | |
[HttpPost] | |
[ActionName("mysecondrout")] | |
public string MySecondPostMethod(JObject userData) | |
{ | |
// do your thing | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment