Skip to content

Commit 9f8f87f

Browse files
committed
ECER-5270: Country changes to international certification country
1 parent eb4f67f commit 9f8f87f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/ECER.Resources.Documents/ICRA/ICRARepository.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public async Task<IEnumerable<ICRAEligibility>> Query(ICRAQuery query, Cancellat
4949
.Include(a => a.ecer_icraeligibilityassessment_ApplicantId)
5050
.Include(a => a.ecer_internationalcertification_EligibilityAssessment_ecer_icraeligibilityassessment)
5151
.IncludeNested(a => a.ecer_bcgov_documenturl_internationalcertificationid)
52+
.IncludeNested(a => a.ecer_internationalcertification_CountryId)
5253
.Execute();
5354

5455
return mapper.Map<IEnumerable<ICRAEligibility>>(results)!.ToList();

src/ECER.Resources.Documents/ICRA/ICRARepositoryMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public ICRARepositoryMapper()
4747
.ForMember(d => d.OtherMiddleName, opts => opts.MapFrom(s => s.ecer_OtherMiddleName))
4848
.ForMember(d => d.OtherLastName, opts => opts.MapFrom(s => s.ecer_OtherLastName))
4949
.ForMember(d => d.HasOtherName, opts => opts.MapFrom(s => s.ecer_CertificateHasOtherName))
50-
.ForMember(d => d.CountryId, opts => opts.MapFrom(s => s.ecer_Country != null ? s.ecer_Country.Id.ToString() : null))
50+
.ForMember(d => d.CountryId, opts => opts.MapFrom(s => s.ecer_internationalcertification_CountryId != null ? s.ecer_internationalcertification_CountryId.ecer_CountryId.ToString() : null))
5151
.ForMember(d => d.NameOfRegulatoryAuthority, opts => opts.MapFrom(s => s.ecer_AuthorityName))
5252
.ForMember(d => d.EmailOfRegulatoryAuthority, opts => opts.MapFrom(s => s.ecer_AuthorityEmail))
5353
.ForMember(d => d.PhoneOfRegulatoryAuthority, opts => opts.MapFrom(s => s.ecer_AuthorityPhone))

0 commit comments

Comments
 (0)