I need to call post method in my controller and I am using HTML.ActionLink in my view.
@HTML.ActionLink("EditUser","User");
[HTTpVerbs.Post]
Public ActionResult EditUser()
{...}
But it is always fetching me with
[HTTPVerbs.Get]
Public ActionResult EditUser()
{...}
The short answer is that you can’t directly.
The longer answer is that you will need to write an ajax javascript method to do so. Something like: