Exemple #1
0
        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);
        }
Exemple #2
0
 public TreeNodeCollection <Category> TreeCategory(int scope)
 {
     return(categoryDao.Tree(scope));
 }