public dynamic GetManagerList() { ManagerBLL m = new ManagerBLL(); List <S_ManagerInfo> list = m.GetManagerList(); List <ManagerInfo> mList = new List <ManagerInfo>(); ManagerInfo manager = null; foreach (var item in list) { manager = new ManagerInfo(); manager.id = item.mgr_id; manager.name = item.mgr_name.Trim(); manager.img = item.mgr_headimgurl; mList.Add(manager); } return(mList); }