Skip to content

Commit

Permalink
fixed mapping for the Provider.SectionName (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
RBiyovskiy authored Jun 26, 2022
1 parent f494923 commit 25bda1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion OutOfSchool/OutOfSchool.WebApi/Util/MappingProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ public MappingProfile()
CreateMap<BlockedProviderParentBlockDto, BlockedProviderParent>();
CreateMap<BlockedProviderParent, BlockedProviderParentDto>().ReverseMap();

CreateMap<ProviderSectionItem, ProviderSectionItemDto>().ReverseMap()
CreateMap<ProviderSectionItem, ProviderSectionItemDto>()
.ForMember(
dest =>
dest.SectionName, opt =>
opt.MapFrom(psi => psi.Name));
CreateMap<ProviderSectionItemDto, ProviderSectionItem>()
.ForMember(
dest =>
dest.Name, opt =>
Expand Down

0 comments on commit 25bda1d

Please sign in to comment.