SES-153 Endpoint tworzący sklepikarza #81

Merged
s426134 merged 4 commits from SES-153 into dev 2021-01-21 17:36:34 +01:00
Showing only changes of commit 69e23bf187 - Show all commits

View File

@ -14,6 +14,8 @@ namespace SessionCompanion.Services.Profiles
public ShopkeeperProfile() public ShopkeeperProfile()
{ {
CreateMap<ShopkeeperViewModel, Shopkeeper>().ReverseMap(); CreateMap<ShopkeeperViewModel, Shopkeeper>().ReverseMap();
CreateMap<Shopkeeper, ShopkeeperWithItemsViewModel>()
.ForMember(vm => vm.Items, conf => conf.MapFrom(items => items.ShopkeeperItems)).ReverseMap();
} }
} }
} }