public List <Category> GetChildNode(int id) { var result = new List <Category>(); var list = CategoryDao.GetCacheList(); GetChildNode(result, list, id); return(result); }
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); }