posso decorare un'azione sia con i [AcceptVerbs (HttpVerbs.Post)]/[AcceptVerbs (HttpVerbs.Get)]Qual è la differenza tra [AcceptVerbs (HttpVerbs.Post)] e [HttpPost]?
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(string title)
{
// Do Something...
}
o con la [HttpPost]/[HttpGet] attributi
[HttpPost]
public ActionResult Create(string title)
{
// Do Something...
}
Sono diversi?
HttpPost è MVC 2.0+ e, come ha detto Matthew, la sua mano appena corta – dbones
come sono chiamate espressioni come [HttpPost] chiamate in asp net mvc? decoratori? – andi
@andi Si chiamano "Attributi" http://msdn.microsoft.com/en-us/library/z0w1kczw.aspx –