Exemplo n.º 1
0
        public ActionResult GetList(int?page)
        {
            List <Motorbike> motorbikes = MotorBusiness.SelectAll();
            int pageNumber = (page ?? 1);

            return(PartialView("_ListMotor", motorbikes.ToPagedList(pageNumber, 3)));
        }
Exemplo n.º 2
0
        //
        // 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)));
        }