public string tree(object sender, EventArgs e) { //string url = @"'../A3.3FileArch"; //string strPath = Server.MapPath(@"..\A3.3FileArch\"); //DirectoryInfo d = new DirectoryInfo(strPath); //ArrayList Flst = new ArrayList(); //Flst.Add(GetAll(d, url)); guide_Cat_manager fcm = new guide_Cat_manager(); var Flst = fcm.BuildCatTree(); string result = Newtonsoft.Json.JsonConvert.SerializeObject(Flst); return(result); }
public bool AddFileCatalog(int parentID, string newCataName) { guide_Cat_manager fcm = new guide_Cat_manager(); return(fcm.AddNewCatalog(parentID, newCataName)); }