示例#1
0
        public List <Category> GetChildNode(int id)
        {
            var result = new List <Category>();
            var list   = CategoryDao.GetCacheList();

            GetChildNode(result, list, id);
            return(result);
        }
示例#2
0
        public List <Category> GetAncestorNote(Category category)
        {
            var result = new List <Category>();
            var list   = CategoryDao.GetCacheList();

            GetParentNote(result, list, category.ParentId);
            result.Add(category);
            return(result);
        }