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; }
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); }