From 69e23bf18748db2284ef8e98c5f9ed14b279622e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20G=C3=B3rzy=C5=84ski?= Date: Wed, 20 Jan 2021 20:53:54 +0100 Subject: [PATCH] SES-153 Added Profile --- .../SessionCompanion.Services/Profiles/ShopkeeperProfile.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SessionCompanion/SessionCompanion.Services/Profiles/ShopkeeperProfile.cs b/SessionCompanion/SessionCompanion.Services/Profiles/ShopkeeperProfile.cs index 11507b7..b09f4e0 100644 --- a/SessionCompanion/SessionCompanion.Services/Profiles/ShopkeeperProfile.cs +++ b/SessionCompanion/SessionCompanion.Services/Profiles/ShopkeeperProfile.cs @@ -14,6 +14,8 @@ namespace SessionCompanion.Services.Profiles public ShopkeeperProfile() { CreateMap().ReverseMap(); + CreateMap() + .ForMember(vm => vm.Items, conf => conf.MapFrom(items => items.ShopkeeperItems)).ReverseMap(); } } }