コード例 #1
0
        public ViewResult VotedDirectors(int?page)
        {
            var votedDirectors = _userDataProvider.GetVotedDirectorsByUser(ApplicationUser.Id);
            var pageSize       = 10;
            var pageNumber     = (page ?? 1);
            var viewModel      = new VotedDirectorsViewModel()
            {
                VotedDirectors = votedDirectors.ToPagedList(pageNumber, pageSize)
            };

            return(View(viewModel));
        }