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()); } } }