Exemple #1
0
        public ViewResult List(int page = 1)
        {
            var statusesListViewModel = new StatusesListViewModel();

            statusesListViewModel.Statuses = statuses.GetStatuses(page, PageSize);

            statusesListViewModel.PagingInfo = new PagingInfo
            {
                CurrentPage  = page,
                ItemsPerPage = PageSize,
                TotalItems   = statuses.GetStatusesCount()
            };

            return(View(statusesListViewModel));
        }