public ActionResult GetList(int?page) { List <Motorbike> motorbikes = MotorBusiness.SelectAll(); int pageNumber = (page ?? 1); return(PartialView("_ListMotor", motorbikes.ToPagedList(pageNumber, 3))); }
// // GET: /MotorBike/ /// <summary> /// return list /// </summary> /// <returns></returns> public ActionResult Index(int?page) { List <Motorbike> motorbikes = MotorBusiness.SelectAll(); int pageNumber = (page ?? 1); return(View(motorbikes.ToPagedList(pageNumber, 3))); }