public TreeNodeCollection <Category> Tree(int scope) { TreeNodeCollection <Category> tree = this.cache.Get(scope.ToString()) as TreeNodeCollection <Category>; if (tree == null) { tree = dao.Tree(scope); this.cache.Add(scope.ToString(), tree); } return(tree); }
public TreeNodeCollection <Category> TreeCategory(int scope) { return(categoryDao.Tree(scope)); }