示例#1
0
        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)));
        }