Example #1
0
        public ActionResult List(int pageSize = 15, int pageNumber = 1)
        {
            string condition = Job.AdminGetJobListCondition("");
            string sort      = Job.AdminGetJobListSort("", "");

            PageModel pageModel = new PageModel(pageSize, pageNumber, Job.AdminGetJobCount(condition));

            JobListModel model = new JobListModel()
            {
                DataList  = Job.AdminGetJobList(pageSize, pageNumber, condition, sort),
                PageModel = pageModel
            };

            SiteUtils.SetAdminRefererCookie(Url.Action("List", "Job"));

            return(View(model));
        }