Beispiel #1
0
        public CommentsModel(int pageNumber, PagedResult<Comment> comments)
        {
            PageNumber = pageNumber;
            Comments = comments;

            Paginator = new Paginator
            {
                ActionName = "Comments",
                CurrentPage = pageNumber,
                TotalPages = comments.TotalPages
            };
        }
Beispiel #2
0
        public RecentModel(string title, PagedResult<EntrySummary> results, string actionName)
        {
            Title = title;
            Results = results;
            ActionName = actionName;

            Paginator = new Paginator
                            {
                                ActionName = actionName,
                                CurrentPage = Results.Page,
                                TotalPages = Results.TotalPages
                            };
        }