SES-153 Added Profile

This commit is contained in:
Karol Górzyński 2021-01-20 20:53:54 +01:00
parent 93a6631cc3
commit 69e23bf187

View File

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