最佳答案
我可以用[ AcceptVerbs (HttpVerbs. Post)]/[ AcceptVerbs (HttpVerbs. Get)]来装饰动作
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(string title)
{
// Do Something...
}
或具有[ HttpPost ]/[ HttpGet ]属性
[HttpPost]
public ActionResult Create(string title)
{
// Do Something...
}
他们不一样吗?