From bf42bab50b7d99bc26957e20e92ba36cd1581c6b Mon Sep 17 00:00:00 2001 From: Sergey Nesterov Date: Fri, 17 Apr 2020 16:16:59 +0300 Subject: [PATCH] Added missing mapping for getting images --- src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs b/src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs index 5dd2b59..5b936f3 100644 --- a/src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs +++ b/src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs @@ -58,6 +58,12 @@ public AutoMapperProfile() .ForMember(e => e.PartitionKey, opt => opt.Ignore()) .ForMember(e => e.RowKey, opt => opt.Ignore()) .ForMember(e => e.Timestamp, opt => opt.Ignore()); + + CreateMap(MemberList.Destination) + .ForMember(e => e.Id, opt => opt.MapFrom(c => c.CampaignContentId)) + .ForMember(e => e.CampaignId, opt => opt.Ignore()) + .ForMember(e => e.Content, opt => opt.Ignore()) + .ForMember(e => e.Language, opt => opt.Ignore()); } } }