I have seen [HttpPost] on ActionResult methods in MVC3. Whey we use this and what is purpose of this?
Can any one help me.
[HttpPost]
public ActionResult Create(FormCollection collection)
{
try
{
// TODO: Add insert logic here
return RedirectToAction("Index");
}
catch
{
return View();
}
}