public ActionResult Index(int PageNum = 1, int PageSize = 16) { SanPhamDao dao = new SanPhamDao(); GioHangHoa gio = (GioHangHoa)Session["cart"]; if (gio != null) { ViewBag.gia = gio.getTongTien(); } return(View("List", dao.ListSPPage(PageNum, PageSize))); }
public ActionResult sp(int PageNum = 1, int PageSize = 10) { SanPhamDao dao = new SanPhamDao(); return(View(dao.ListSPPage(PageNum, PageSize))); }