public async Task <ActionResult> GetOrganizeList() { var list = await _organizeService.GetOrganizeList(); Dictionary <string, object> dic = new Dictionary <string, object>(); foreach (var item in list) { dic.Add(item.F_Id, item); } return(Content(JsonConvert.SerializeObject(dic), "application/text")); }
/// <summary> /// 机构列表 /// </summary> /// <returns></returns> public IEnumerable <OrganizeEntity> GetOrganizeList() { return(_organizeService.GetOrganizeList()); }