Esempio n. 1
0
        private IEnumerable <IResourceItemBase> BuildResourceList(ISearchResults searchResults)
        {
            var items          = new List <IResourceItemBase>();
            var groupedResults = searchResults.GroupBy(GetProviderName);

            foreach (var group in groupedResults)
            {
                items.AddRange(ResourceFactoryProvider.GetResourceFactory(group.Key, this.Umbraco, this.Services.ContentService, this.CultureName).BuildResourcesList(group.AsEnumerable()));
            }

            return(items);
        }