I had the same issue, when I'm using @model
PagedList.IPagedList
I get error :
PagedList.IPagedList<> does not contain a definition for ....
Solution :
In View -> Index.cshtml
Replace model.Code with model.First().Code
- Just Add First() before all properties.