示例#1
0
        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"));
        }
示例#2
0
 /// <summary>
 /// 机构列表
 /// </summary>
 /// <returns></returns>
 public IEnumerable <OrganizeEntity> GetOrganizeList()
 {
     return(_organizeService.GetOrganizeList());
 }