public ActionResult Index(int id, string search, int?page) { var cp = new BLLRecorrido(); var lista = cp.ListByObra(id); if (search == null) { search = ""; } return(View(lista.Where(x => x.Inicio.ToUpper().StartsWith(search.ToUpper())).ToList().ToPagedList(page ?? 1, 10))); }