I am sure this is a stupid question, but how would I get a pagedlist of filtered items?
Here is how I ended up doing it:
PagedList<Company> company = Company.GetPaged(1, 10);
var list = Company.Find(x => x.CompanyName.ToLower().Contains(query.ToLower()));
company .Clear();
foreach (var x in list)
company .Add(x);
return View(company );
In other words I want to do a find on the table, and return a paged list of the results.
Thanks!