a guest Dec 8th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- private static List<FolderChildrenDateCreated> GetChildItemsInformation<T>(Guid ids, IQueryable<T> childItems)
- where T : Content, IHasParent
- childItems = childItems.Where(p => (ids.Contains(p.Parent.Id)));
- return childItems.GroupBy(p => p.Parent.Id).Where(ch => ch.Count() > 0)
- .Select(chi => new FolderChildrenDateCreated(chi.Key, chi.Max<T, DateTime>(i => i.DateCreated))).ToList();
RAW Paste Data