项目中遇到一个action,有post和get请求,特此记录方法:
在action 上加上 AcceptVerbs标签:
[AcceptVerbs(HttpVerbs.Get | HttpVerbs.Post)]
public ActionResult Index()
项目中遇到一个action,有post和get请求,特此记录方法:
在action 上加上 AcceptVerbs标签:
[AcceptVerbs(HttpVerbs.Get | HttpVerbs.Post)]
public ActionResult Index()