Skip to content

Commit

Permalink
fixed mapping for Application (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
P0linux authored Jul 14, 2021
1 parent 2ab67c3 commit 15c16c2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public static ApplicationDto ToModel(this Application application)
.ForMember(w => w.Address, m => m.Ignore())
.ForMember(w => w.Teachers, m => m.Ignore());
cfg.CreateMap<Child, ChildDto>()
.ForMember(c => c.BirthCertificate, m => m.Ignore());
.ForMember(c => c.BirthCertificate, m => m.Ignore())
.ForMember(c => c.Parent, m => m.Ignore());
cfg.CreateMap<Parent, ParentDTO>();
cfg.CreateMap<Application, ApplicationDto>();
});
Expand Down

0 comments on commit 15c16c2

Please sign in to comment.