public IEnumerable <string> GetRelationsByType(TaxonomyNodeBoxMap tax)
        {
            var taxNode = _tree.FindOne(tax.Path);

            if (taxNode == null)
            {
                return(null);
            }
            return(_relRepo.GetRelationsByType(taxNode).Select(x => x.ToString()));
        }
Beispiel #2
0
        public string getRelationsByType(string path)
        {
            var taxNode = _tree.FindOne(path);

            if (taxNode == null)
            {
                return(null);
            }

            relationTransformer.Entries = _relationRepo.GetRelationsByType(taxNode);
            return(JsonConvert.SerializeObject(relationTransformer.ToBox()));
        }