internal static WorkflowStepVm FromModel(WorkflowStep workflowStep)
 {
     WorkflowStepVm vm = new WorkflowStepVm();
     vm.Id = workflowStep.Id;
     vm.IsRequired = workflowStep.IsRequired;
     vm.Name = workflowStep.Name;
     vm.WorkflowId = workflowStep.WorkflowId;
     vm.Order = workflowStep.Order;
     return vm;
 }
Beispiel #2
0
        internal static WorkflowStepVm FromModel(WorkflowStep workflowStep)
        {
            WorkflowStepVm vm = new WorkflowStepVm();

            vm.Id         = workflowStep.Id;
            vm.IsRequired = workflowStep.IsRequired;
            vm.Name       = workflowStep.Name;
            vm.WorkflowId = workflowStep.WorkflowId;
            vm.Order      = workflowStep.Order;
            return(vm);
        }
Beispiel #3
0
        internal static WorkflowVm FromModel(Workflow workflow)
        {
            List <WorkflowStepVm> steps = new List <WorkflowStepVm>();

            WorkflowVm vm = new WorkflowVm();

            vm.Id   = workflow.Id;
            vm.Url  = workflow.Url;
            vm.Name = workflow.Name;
            foreach (var step in workflow.WorkflowSteps)
            {
                steps.Add(WorkflowStepVm.FromModel(step));
            }
            vm.WorkflowSteps = steps;
            return(vm);
        }