I know that you can use OnActionExecuting
or an Action filter to inject parameters to an action method, but is it possible to change the action name itself? I was tempted to try this:
Public Overrides Sub OnActionExecuting(filterContext As ActionExecutingContext)
filterContext.ActionDescriptor.ActionName = "SomethingElse"
End Sub
But this won't compile, because ActionName
is ReadOnly. Is there a way to do what I need?