Exemple #1
0
        public ActionResult NewProduct(int?page)
        {
            int         pagecurent = (page ?? 1);
            int         pageSize   = 9;
            var         dao        = new SachDao();
            List <Sach> model      = dao.ListSachMoi();

            return(View(model.ToPagedList(pagecurent, pageSize)));
        }