public ActionResult InvokeActionMethod(ActionDescriptor actionDescriptor) { if (actionDescriptor == null) { throw new ArgumentNullException("actionDescriptor"); } IDictionary<string, object> parameters = GetParameters(actionDescriptor); object returnObj = actionDescriptor.Execute(this.Context,parameters); ActionResult result = (returnObj as ActionResult) ?? new ContentResult { Content=returnObj.ToString()}; return result; }