Пример #1
0
        public IActionResult ActiveSurveys(int page = 1, int pageSize = 5)
        {
            MyPagedList <TblSurvey> list = _survey.GetActiveSurvey(page, pageSize);

            ViewBag.list      = list;
            ViewBag.pageIndex = page;
            ViewBag.pageSize  = pageSize;
            return(View(list.model));
        }