public ActionResult Index(string txt_search, int page = 1, int pagesize = 9) { if (txt_search == null) { list = dp.listpd(page, pagesize); } else { list = dp.search(txt_search, 1, 5); } return(View(list)); }
// GET: ADMIN/RoBo public ActionResult RoBo(string tk, int?Page) { if (Session[Common.CommonConstant.USER_SESSION] != null) { if (tk == null) { list1 = dp.listpd(Page ?? 1, 5); } else { list1 = dp.search(tk, 1, 5); } return(View(list1)); } else { return(RedirectToAction("Index", "Login")); } }