Can we call two actionresult/controller at once in

2019-09-07 08:08发布

Can we call Two ActionResult /Controller function at once which both return partial view?

1条回答
劫难
2楼-- · 2019-09-07 08:14

No you can't call two actions at the same time using one URI. This is because the routing table will only match one route and then pass execution to that controller and action. You can call another action from within that action, but I wouldn't recommend it and would just have your client send another request to the server for that other action you want to run.

查看更多
登录 后发表回答