コード例 #1
0
        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
            }));
        }