internal static WorkflowInstanceStepVm FromModel(WorkflowInstanceStep workflowInstanceStep) { WorkflowInstanceStepVm vm = new WorkflowInstanceStepVm(); vm.Id = workflowInstanceStep.Id; vm.IsComplete = workflowInstanceStep.IsComplete; vm.IsSkipped = workflowInstanceStep.IsSkipped; vm.WorkflowInstanceId = workflowInstanceStep.WorkflowInstanceId; vm.WorkflowStepId = workflowInstanceStep.WorkflowStepId; return vm; }
public WorkflowInstanceStep ToModel() { var workflowInstanceStep = new WorkflowInstanceStep(); workflowInstanceStep.Id = this.Id; workflowInstanceStep.IsComplete = this.IsComplete; workflowInstanceStep.IsSkipped = this.IsSkipped; workflowInstanceStep.WorkflowStepId = this.WorkflowStepId; workflowInstanceStep.WorkflowInstanceId = this.WorkflowInstanceId; return workflowInstanceStep; }