In ASP MVC3, how can execute a controller and action using a uri?

前端 未结 3 1451
耶瑟儿~
耶瑟儿~ 2021-01-03 08:44

How can I, when executing a controller action, take a Uri (not the one requested) and invoke the action from the controller that would have been executed had that Uri been t

3条回答
  •  悲&欢浪女
    2021-01-03 09:14

    Any reason you can't push the code you are calling into a controller-independent class? Cross-calling controllers sounds like a bit of a WTF to me.

提交回复
热议问题