譬如我有action A,我想跳到action B,但是action B有参数MyModel,怎么从action A跳到action B(MyModel model)? RedirectToAction方法不行吧?
3 回答
回首忆惘然
TA贡献1847条经验 获得超11个赞
return RedirectToAction("action","controller",RouteValue)
比如:
return RedirectToAction("action","controller",new MyModel {})
return RedirectToAction("action","controller",new {参数1=xx,参数2=xxx})
- 3 回答
- 0 关注
- 409 浏览
添加回答
举报
0/150
提交
取消