private List <SiteSettingPageViewModel> GetPages(GetWidgetUsagesCommandRequest request, out int totalCount)
        {
            var filter = new PagesFilter();

            filter.CopyFrom(request.Options);
            filter.PageSize           = filter.PageNumber * filter.PageSize;
            filter.PageNumber         = 1;
            filter.ContentId          = request.WidgetId;
            filter.Column             = null;
            filter.IncludeArchived    = true;
            filter.IncludeMasterPages = true;

            var pages = pageListService.GetFilteredPagesList(filter);

            totalCount = pages.TotalCount;

            return(pages.Items.ToList());
        }
Example #2
0
 public virtual PagesGridViewModel <SiteSettingPageViewModel> Execute(PagesFilter request)
 {
     return(pageListService.GetFilteredPagesList(request));
 }