示例#1
0
        // 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));
        }
示例#2
0
        // 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));
        }