Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SampleWidgetController : Controller
- {
- public ActionResult Content()
- {
- ...
- }
- }
- public class CommonController : Controller
- {
- public ActionResult Content(string controllerName, string actionName)
- {
- // I want all requests to SampleWidget/Content to be passed here
- // With controllerName = "SampleWidget" and actionName = "Content"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement