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);
}