public ActionResult Product(int?page) { int pageNumber = (page ?? 1); int pageSize = 10; var posts = sanpham.GetSANPHAMs(); @ViewBag.TotalProduct = posts.Count(); return(View(posts.ToPagedList(pageNumber, pageSize))); }
public ActionResult Product(int?page) { int pageNumber = (page ?? 1); int pageSize = 10; var posts = sanpham.GetSANPHAMs(); @ViewBag.TotalProduct = posts.Count(); return(View(posts.ToPagedList(pageNumber, pageSize))); }