public FireRiskAssessmentFurtherControlMeasureTaskDto MapWithAssignedToAndSignificantFinding(FireRiskAssessmentFurtherControlMeasureTask entity) { var dto = new TaskDtoMapper().MapWithAssignedTo(entity) as FireRiskAssessmentFurtherControlMeasureTaskDto; dto.SignificantFinding = new SignificantFindingDtoMapper().Map(entity.SignificantFinding); return dto; }
public RiskAssessmentReviewTaskDto MapWithAssignedToAndReview(RiskAssessmentReviewTask entity) { var dto = new TaskDtoMapper().MapWithAssignedTo(entity) as RiskAssessmentReviewTaskDto; dto.RiskAssessmentReview = new RiskAssessmentReviewDtoMapper().Map(entity.RiskAssessmentReview); return dto; }
public MultiHazardRiskAssessmentFurtherControlMeasureTaskDto MapWithAssignedToAndRiskAssessmentHazard(MultiHazardRiskAssessmentFurtherControlMeasureTask entity) { var dto = new TaskDtoMapper().MapWithAssignedTo(entity) as MultiHazardRiskAssessmentFurtherControlMeasureTaskDto; dto.RiskAssessmentHazard = entity.MultiHazardRiskAssessmentHazard != null ? new RiskAssessmentHazardDtoMapper().Map( entity.MultiHazardRiskAssessmentHazard) : null; return dto; }