using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
private void GetNodeList(List<CL_Question> lstRoot)
var lstNode = new List<Node>();
var lstAnswerId = new List<int>();
var ids = lstRoot.Select(m => new List<string>
public partial class CL_Question
public int ID_Question { get; set; }
public Nullable<int> ID_Answer { get; set; }
public Nullable<int> ID_CreditInterview { get; set; }
public string Code { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string LastChangedAuthor { get; set; }
public System.DateTime LastChanged { get; set; }
public bool Active { get; set; }
public bool Starting { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "")]
public class TreeViewModel
public List<Node> Nodes { get; set; }
[JsonProperty(PropertyName = "key")]
public int Key { get; set; }
[JsonProperty(PropertyName = "parentkey")]
public int? ParentKey { get; set; }
[JsonProperty(PropertyName = "title")]
public string Title { get; set; }
[JsonProperty(PropertyName = "folder")]
public bool Folder { get; set; }
[JsonProperty(PropertyName = "starting")]
public bool Starting { get; set; }
[JsonProperty(PropertyName = "product")]
public bool Product { get; set; }
[JsonProperty(PropertyName = "children")]
public List<Node> Children { get; set; }