public string GetName(HttpContext context) { DataSet ds = new BLL.Project_Space().GetName(" parentID=0"); string res = JsonHelper.DataTable2Json_Combo(ds.Tables[0]); return(res); }
public string GetList(HttpContext context) { int psid; //int parentID; bool ints = int.TryParse(context.Request["psid"], out psid); // bool ints2= int.TryParse(context.Request["parentID"], out parentID); DataSet ds = new BLL.Project_Space().GetList("ps1.p_sid=" + psid + " and ps2.parentID=ps1.sid "); string res = JsonHelper.DataTable2Josn(ds.Tables[0]); return(res); }