如果我已经使用[AcceptVerbs(..)]属性修饰了我的动作方法,我是否必须在路线定义中注册HttpVerb约束(当我注册路线时)?
例如.我有这个.
[AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(FormCollection formCollection) { .. }
我是否需要将此添加到引用此操作的路由中,作为约束?
asp.net-mvc routes acceptverbs http-verbs
acceptverbs ×1
asp.net-mvc ×1
http-verbs ×1
routes ×1