Example #1
0
 public dynamic ToTree()
 {
     return(new
     {
         title = Instance.Name,
         key = Instance.Guid,
         description = Instance.Description,
         createUserName = Instance.CreateUserName,
         createTime = Instance.CreateTime.ToString("yyyy-MM-dd HH:mm:ss"),
         children = SubFolders.Select(x => x.ToTree())
     });
 }