c# - Get items from PageList -
i using project pagedlist (https://github.com/troygoode/pagedlist) on asp.net mvc project , have following:
pagedlist<testmodel> models = _service.get(2, 20);
the service return pagedlist need create list items in pagedlist , without paging metadata.
i tried following
ilist<testmodel>)models.getenumerator()
no success. how can pagedlist converted list?
try
using system.linq; models.tolist()
the return type list<testmodel>
.
Comments
Post a Comment