private object PerformDataBindedExecution(ControllerExecutionContext executionCtx, ActionDescriptor descriptor) { var args = new List<object>(); foreach (var param in descriptor.Parameters.Values) { if (!param.DemandsCustomDataBinding) { DoDefaultDataBind(param, args, executionCtx); } else { DoCustomDataBind(param, args, executionCtx); } } return descriptor.Action(executionCtx.Controller, args.ToArray()); }
private object PerformSimpleExecution(ControllerExecutionContext executionCtx, ActionDescriptor descriptor) { return descriptor.Action(executionCtx.Controller, new object[0]); }