public string LoadForTree() { var models = _app.LoadAll(); //添加根节点 models.Add(new Category { Id = 0, ParentId = -1, Name = "根结点", CascadeId = "0" }); return(JsonHelper.Instance.Serialize(models)); }
public string LoadForTree() { return(JsonHelper.Instance.Serialize(_app.LoadAll())); }