How do I find out whether a GET or a POST hit my ASP.NET MVC controller action?
You can also use the ActionResults For Get and Post methods separately as below:
[HttpGet] public ActionResult Operation() { return View(...) } [HttpPost] public ActionResult Operation(SomeModel model) { return View(...); }