public ActionResult Links() { try { int nPage = Convert.ToInt32(Request.QueryString["p"]); if (nPage < 1) { nPage = 1; } CreateRepos(); AffiliateLinksPage Model = new AffiliateLinksPage(); Model.Links = LinkRepo.GetItems(nPage); Model.LinkTotal = LinkRepo.GetItemsTotal(); Model.Page = nPage; return(View(Model)); } catch (Exception ex) { Console.Write(ex); return(Content("Xảy ra lỗi hệ thống ! Vui lòng thử lại.")); } finally { DisposeRepos(); } }