// Index public ActionResult Index(int?page = 1) { List <SanPham> dsdt = dtdt.getllDienThoai(); List <SanPham> dssphot = dtdt.getSpHot(); List <SanPham> dsspm = dtdt.getSpMoi(); List <SanPham> dsqc = dtdt.SPquangcao(); int ps = 4; int pages = (page ?? 1); ViewBag.DanhSachSP = dsdt.ToPagedList(pages, ps); ViewBag.SanPhamHot = dssphot; ViewBag.SanPhamMOi = dsspm; ViewBag.SPquangcao = dsqc; return(View()); }