private object GetdingTalkUsersList() { DingTalkUsersApp dutyApp = new DingTalkUsersApp(); var data = dutyApp.GetList(); Dictionary <string, object> dictionary = new Dictionary <string, object>(); foreach (DingTalkUserEntity item in data) { var fieldItem = new { encode = item.UserId, fullname = item.UserName }; dictionary.Add(item.UserId, fieldItem); } return(dictionary); }
public ActionResult GetGridJson(string keyword) { var data = app.GetList(keyword); return(Content(data.ToJson())); }