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