public CommentsModel(int pageNumber, PagedResult<Comment> comments) { PageNumber = pageNumber; Comments = comments; Paginator = new Paginator { ActionName = "Comments", CurrentPage = pageNumber, TotalPages = comments.TotalPages }; }
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 }; }