SES-153 Added Profile
This commit is contained in:
parent
93a6631cc3
commit
69e23bf187
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user