From 5ccbc83f135636626b4c99ce2fe7c24effddf25a Mon Sep 17 00:00:00 2001 From: Sergey Nesterov Date: Fri, 17 Apr 2020 15:55:16 +0300 Subject: [PATCH] Added missing mapping for images saving --- src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs b/src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs index 1af8180..5dd2b59 100644 --- a/src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs +++ b/src/MAVN.Service.SmartVouchers/AutoMapperProfile.cs @@ -1,5 +1,6 @@ using System; using AutoMapper; +using MAVN.Service.SmartVouchers.AzureRepositories.Entities; using MAVN.Service.SmartVouchers.Client.Models.Requests; using MAVN.Service.SmartVouchers.Client.Models.Responses; using MAVN.Service.SmartVouchers.Domain.Enums; @@ -50,6 +51,13 @@ public AutoMapperProfile() CreateMap(MemberList.Destination); CreateMap(MemberList.Destination); + + CreateMap(MemberList.Destination) + .ForMember(e => e.CampaignContentId, opt => opt.MapFrom(c => c.Id)) + .ForMember(e => e.ETag, opt => opt.Ignore()) + .ForMember(e => e.PartitionKey, opt => opt.Ignore()) + .ForMember(e => e.RowKey, opt => opt.Ignore()) + .ForMember(e => e.Timestamp, opt => opt.Ignore()); } } }