SES-153 Endpoint tworzący sklepikarza #81
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user