I do not know how this works, but I will give him guesses; -)
First of all, it has nothing to do with whether [HttpGet]or [HttpPost]not it usually works.
Your middle methods [HttpGet]look something like this:
[HttpGet]
public ActionResult Index() {
return View(data);
}
, , , URL (.. Home/Index).
[HttpPost] :
[HttpPost]
public ActionResult Create(MyModel myModel) {
if (ModelState.IsValid)
{
}
else
{
return View(myModel);
}
}
, , Create (...). [HttpGet] , .
, - ValidationMessageFor(m => m.SomeProperty) , . , .
, View() ActionResult ( HTTP GET), , . , POCO (Plain Old # Object) - .
, JavaScript . [HttpGet] , ( JavaScript ). , , , , JavaScript, change, keydown, keypress ..