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