コード例 #1
0
        public string LoadForTree()
        {
            var models = _app.LoadAll();

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