public ActionResult Index(int?pPage) { SupportPage mSupportPage = new SupportPage(); if (pPage == null) { if (Session["HoTroPage"] != null) { pPage = (int)Session["HoTroPage"]; } else { pPage = 1; } } else { Session["HoTroPage"] = pPage; } /*Lay danh sach cac tin theo page*/ var mSupportList = SupportService.LayTheoTrang((int)pPage, 10); if (mSupportList.Count < 10) { mSupportPage.IsEnd = true; } //Tao Html cho danh sach tin nay mSupportPage.Html = V308HTMLHELPER.TaoDanhSachSupport(mSupportList, (int)pPage); mSupportPage.Page = (int)pPage; return(View("Index", mSupportPage)); }