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