Example #1
0
 public DynamicContentPublishingGroup GetContentPublicationById(string id)
 {
     return(PublishingGroups.Include(x => x.ContentItems.Select(y => y.ContentItem))
            .Include(x => x.ContentPlaces.Select(y => y.ContentPlace))
            .FirstOrDefault(x => x.Id == id));
 }
Example #2
0
 public DynamicContentPublishingGroupEntity[] GetContentPublicationsByIds(string[] ids)
 {
     return(PublishingGroups.Include(x => x.ContentItems.Select(y => y.ContentItem))
            .Include(x => x.ContentPlaces.Select(y => y.ContentPlace))
            .Where(x => ids.Contains(x.Id)).ToArray());
 }