Пример #1
0
 public ActionResult AutocompleteTags(int limit)
 {
     TagManager tm = new TagManager();
     List<sTag> stags = new List<sTag>();
     stags = tm.GetAllSTags();
     List<string> tags = new List<string>();
     foreach (sTag s in stags)
     {
         tags.Add(s.value);
     }
     return Json(tags, JsonRequestBehavior.AllowGet);
 }