Skip to content

Commit 9be423a

Browse files
committed
ECER-5270: Country null mapping issue resolved in the backend
1 parent cf3a97a commit 9be423a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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_internationalcertification_CountryId != null ? s.ecer_internationalcertification_CountryId.Id.ToString() : null))
50+
.ForMember(d => d.CountryId, opts => opts.MapFrom(s => s.ecer_CountryId != null ? s.ecer_CountryId.Id.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)