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())); }
public static IEnumerable <SelectListItem> InterestPoints() { return(CodeValueModel.ConvertToSelect(cv.InterestPoints(), "Id")); }