public static CaseWorkerTaskAggregate ToDomain(this CaseWorkerTaskModel record) { return(new CaseWorkerTaskAggregate { AggregateId = record.Id, Version = record.Version, CasePlanInstanceId = record.CasePlanInstanceId, CasePlanInstanceElementId = record.CasePlanInstanceElementId, CreateDateTime = record.CreateDateTime, UpdateDateTime = record.UpdateDateTime }); }
public static CaseWorkerTaskAggregate ToDomain(this CaseWorkerTaskModel record) { return(new CaseWorkerTaskAggregate { AggregateId = record.Id, Version = record.Version, CasePlanInstanceId = record.CasePlanInstanceId, CasePlanInstanceElementId = record.CasePlanInstanceElementId, CreateDateTime = record.CreateDateTime, UpdateDateTime = record.UpdateDateTime, Roles = record.Roles.Select(_ => ToCaseWorkerTaskRoleDomain(_)).ToList() }); }