public ActionResult Index(string sortOrder, string searchString, int?page) { BaseModelVehicleService models = new VehicleModelService(); var modelsToDisplay = models.Index(sortOrder, searchString, page); return(View(modelsToDisplay.ToPagedList(page ?? 1, 5))); }