private static IEnumerable <Guid> GetChildrenByTypePredicate(DObject obj, IServerApiService repository, Predicate <INType> predicate) { return(obj.Children.Where(x => predicate(repository.GetType(x.TypeId))).Select(x => x.ObjectId)); }
public static IEnumerable <DChild> GetStorageChildren(this DObject obj, IServerApiService repository) { return(obj.Children.Where(x => MatchesPilotStorage(repository.GetType(x.TypeId)))); }