// GET: Admin/Quiz public ActionResult Index(int page = 1, int pageSize = 10) { QuizData qz = new QuizData(); var model = qz.ListQuizPaging(page, pageSize); return(View(model)); }
// GET: Admin/Quiz public ActionResult Index(int page = 1, int pageSize = 2) { SetViewBagDD(); QuizData qz = new QuizData(); if (Request.QueryString["MaMon"] != null) { searchString = Request.QueryString["MaMon"].ToString(); ViewBag.searchString = searchString; model = qz.ListQuizPaging(searchString, page, pageSize); } else { model = qz.ListQuizPagingNoSearch(page, pageSize); } return(View(model)); }