更新时间:2021-08-09 01:12:50
如果您还没有配置任何列举HTTPMethod在控制器的动作,这被认为是唯一HttpPost在RC。在测试中,假定支持所有方法 - GET,PUT,POST和DELETE。这是测试版的小变化RC。你可以很容易德科雷一个以上列举HTTPMethod与的[AcceptVerbs(GET,POST)]你的行动。
If you have not configured any HttpMethod on your action in controller, it is assumed to be only HttpPost in RC. In Beta, it is assumed to support all methods - GET, PUT, POST and Delete. This is a small change from beta to RC. You could easily decore more than one httpmethod on your action with [AcceptVerbs("GET", "POST")].