public static string EntryPointList() { var m = new CodeValueModel(); var q = from o in m.EntryPointList() select new { value = o.Id, text = o.Value }; return JsonConvert.SerializeObject(q.ToArray()); }