Beispiel #1
0
        public ActionResult VoteList(int pageSize = 15, int pageNumber = 1)
        {
            PageModel pageModel = new PageModel(pageSize, pageNumber, Vote.AdminGetVoteCount());

            VoteListModel model = new VoteListModel()
            {
                PageModel = pageModel,
                VoteList  = Vote.AdminGetVoteList(pageModel.PageSize, pageModel.PageNumber)
            };

            SiteUtils.SetAdminRefererCookie(Url.Action("VoteList"));

            return(View(model));
        }