// GET: Admin/Contact public ActionResult Index(int page = 1, int pagesize = 10) { var dao = new ContactDAO(); var model = dao.ListAllPage(page, pagesize); return(View(model)); }
// GET: Admin/ContactAdmin public ActionResult Index(string search, int page = 1, int pageSize = 5) { var iplAcc = new ContactDAO(); var model = iplAcc.ListAllPage(search, page, pageSize); ViewBag.Search = search; return(View(model)); }