@@ -22,7 +22,8 @@ public ICRARepositoryMapper()
2222 . ForMember ( d => d . ApplicantId , opts => opts . MapFrom ( s => s . ecer_icraeligibilityassessment_ApplicantId . Id ) )
2323 . ForMember ( d => d . InternationalCertifications , opts => opts . MapFrom ( s => s . ecer_internationalcertification_EligibilityAssessment_ecer_icraeligibilityassessment ) )
2424 . ForMember ( d => d . EmploymentReferences , opts => opts . MapFrom ( s => s . ecer_WorkExperienceRef_ecer_ICRAEligibilityAssessment_ecer_ICRAEligibilityAssessment ) )
25- . ForMember ( d => d . CreatedOn , opts => opts . MapFrom ( s => s . CreatedOn ) ) ;
25+ . ForMember ( d => d . CreatedOn , opts => opts . MapFrom ( s => s . CreatedOn ) )
26+ . ForMember ( d => d . Status , o => o . MapFrom ( s => s . StatusCode ) ) ;
2627
2728 CreateMap < InternationalCertification , ecer_InternationalCertification > ( MemberList . Source )
2829 . ForSourceMember ( s => s . NewFiles , opts => opts . DoNotValidate ( ) )
@@ -63,9 +64,11 @@ public ICRARepositoryMapper()
6364 . ForMember ( d => d . DeletedFiles , opts => opts . Ignore ( ) )
6465 . ForMember ( d => d . Files , opts => opts . MapFrom ( src => src . ecer_bcgov_documenturl_internationalcertificationid . ToList ( ) ) ) ;
6566
67+ CreateMap < ecer_ICRAEligibilityAssessment_StatusCode , ICRAStatus > ( )
68+ . ConvertUsingEnumMapping ( o => o . MapByName ( true ) ) ;
69+
6670 CreateMap < ICRAStatus , ecer_ICRAEligibilityAssessment_StatusCode > ( )
67- . ConvertUsingEnumMapping ( opts => opts . MapByName ( true ) )
68- . ReverseMap ( ) ;
71+ . ConvertUsingEnumMapping ( o => o . MapByName ( true ) ) ;
6972
7073 CreateMap < EmploymentReference , ecer_WorkExperienceRef > ( MemberList . Source )
7174 . ForMember ( d => d . ecer_WorkExperienceRefId , opts => opts . MapFrom ( s => string . IsNullOrEmpty ( s . Id ) ? null : s . Id ) )
0 commit comments