BlendInteractive.ExtendedCategories.Implementations.CategoryRepository.GetContent C# (CSharp) Метод

GetContent() публичный Метод

public GetContent ( EPiServer.Core.ContentReference contentRef, string scope = null ) : IEnumerable
contentRef EPiServer.Core.ContentReference
scope string
Результат IEnumerable
        public IEnumerable<PageData> GetContent(ContentReference contentRef, string scope = null)
        {
            var refs = scope == null ?
                Store.Items<CategoryAssignment>().Where(ca => ca.CategoryPage == contentRef.ToReferenceWithoutVersion()).ToList() :
                Store.Items<CategoryAssignment>().Where(ca => ca.CategoryPage == contentRef.ToReferenceWithoutVersion() && ca.Scope == scope).ToList();

            var repo = ServiceLocator.Current.GetInstance<IContentRepository>();

            return refs.Select(ca => repo.Get<PageData>(ca.ContentPage)).Where(x => !x.IsDeleted);
        }