public static string ToJson(List <TreeModel> data) { return(JsonHelper.SerializeObject(ToTree(data, 0), true, true)); }
public static string ToJson(List <SelectModel> data) { return(JsonHelper.SerializeObject(ToSelect(data, 0, ""), true, true)); }