Exemplo n.º 1
0
 public ActionResult GetSelectJson(string enCode)
 {
     var data = dictService.GetDictItemList(enCode);
     List<object> list = new List<object>();
     foreach (DictItemGridDto item in data)
     {
         list.Add(new { id = item.ItemCode, text = item.ItemName });
     }
     return Content(list.ToJson());
 }