protected override ActionDescriptor FindAction(ControllerContext controllerContext, ControllerDescriptor controllerDescriptor, string actionName)
        {
            ActionDescriptor foundAction;

            try
            {
                foundAction = base.FindAction(controllerContext, controllerDescriptor, actionName);
            }
            catch
            {
                foundAction = null;
            }

            if (foundAction == null)
            {
                foundAction = new DynamicActionDescriptor(actionName, controllerDescriptor);
            }

            return foundAction;
        }
Beispiel #2
0
        protected override ActionDescriptor FindAction(ControllerContext controllerContext, ControllerDescriptor controllerDescriptor, string actionName)
        {
            ActionDescriptor foundAction;

            try
            {
                foundAction = base.FindAction(controllerContext, controllerDescriptor, actionName);
            }
            catch
            {
                foundAction = null;
            }

            if (foundAction == null)
            {
                foundAction = new DynamicActionDescriptor(actionName, controllerDescriptor);
            }

            return(foundAction);
        }