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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -