Configuration with IPagedList not working
Opened this issue · 0 comments
Zilioli commented
We´re using Arch Unit Of Work and my HTTPGet return an IPagedList from the Arch pack.
The IPagedList has a property IListItems, but the links are not comming in the Items result.
My configurationService is:
services .AddHateoas(options => { options .AddLink<PersonDto>("get-person", p => new { id = p.Data.Id }) .AddLink<IPagedList<PersonDto>>("create-person") .AddLink<PersonDto>("update-person", p => new { id = p.Data.Id }); });
Can you help me?
Tks