예제 #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);
        }
예제 #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;
        }