Esempio n. 1
0
        public static List <ViewCat> GetSubCatsForSelect()
        {
            List <ViewCat>      results = new List <ViewCat>();
            List <FileCategory> list    = GetSubCategories();

            foreach (FileCategory f in list)
            {
                ViewCat c = new ViewCat();
                c.Id       = f.Id;
                c.Name     = f.Name;
                c.ParentId = f.ParentId;
                results.Add(c);
            }

            return(results);
        }
Esempio n. 2
0
        public static List<ViewCat> GetSubCatsForSelect()
        {
            List<ViewCat> results = new List<ViewCat>();
            List<FileCategory> list = GetSubCategories();
            foreach (FileCategory f in list) {
                ViewCat c = new ViewCat();
                c.Id = f.Id;
                c.Name = f.Name;
                c.ParentId = f.ParentId;
                results.Add( c );
            }

            return results;
        }