Action Methods in ASP.NET MVC — a practical guide to ASP.NET MVC action methods with clear examples you can reuse in real projects.
ASP & ASP.NET Tutorial Series (93/247). Prefer one article? Read the complete ASP.NET tutorial.
Short description
Use [HttpPost] for state-changing actions.
Action tip
[HttpPost]
public ActionResult Create(ItemVm model)
{
if (!ModelState.IsValid) return View(model);
// save
return RedirectToAction("Index");
}