public static string WorkflowStartAction(this UrlHelper urlHelper, string workflowKey) { var startActivity = WorkflowController.GetWorkflow(workflowKey).StartActivity; return(urlHelper.Action("Start", "Workflow", new { workflowKey, modelType = startActivity.Method.DeclaringType.PartialName(), methodName = startActivity.Method.Name })); }