public static WorkflowDto FromWorkflow(Guid id, Workflow workflow) { var result = SimpleMapper.Map(workflow, new WorkflowDto { Steps = workflow.Steps.ToDictionary( x => x.Key, x => WorkflowStepDto.FromWorkflowStep(x.Value) !), Id = id });
public static WorkflowDto FromWorkflow(Guid id, Workflow workflow, ApiController controller, string app) { var result = SimpleMapper.Map(workflow, new WorkflowDto { Steps = workflow.Steps.ToDictionary( x => x.Key, x => WorkflowStepDto.FromWorkflowStep(x.Value)), Id = id }); return(result.CreateLinks(controller, app, id)); }
public static WorkflowDto FromDomain(DomainId id, Workflow workflow) { var result = SimpleMapper.Map(workflow, new WorkflowDto { Steps = workflow.Steps.ToDictionary( x => x.Key, x => WorkflowStepDto.FromDomain(x.Value)), Id = id }); return(result); }