Esempio n. 1
0
        public PartialViewResult Course(int?page)
        {
            int pageSize   = 6;
            int pageNumber = (page ?? 1);
            var model      = new KhoaHocD().ListAll();

            return(PartialView(model.ToPagedList(pageNumber, pageSize)));
        }