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