Ejemplo n.º 1
0
        public bool IsBuilt()
        {
            var docToDoc   = relationService.GetRelationTypeByAlias(RelationTypes.DocumentToDocumentAlias);
            var docToMedia = relationService.GetRelationTypeByAlias(RelationTypes.DocumentToMediaAlias);

            if (docToDoc == null || docToMedia == null)
            {
                return(false);
            }
            var built = relationService.HasRelations(docToDoc);

            built = built || relationService.HasRelations(docToMedia);
            return(built);
        }