/// <summary> /// 获取社团成员 /// </summary> /// <param name="id"></param> /// <returns></returns> public async Task <IActionResult> UserList(Guid id) { //获取社团用户 var anAdminUsers = await _activityUserExtension.GetAll().Include(x => x.User).Where(x => x.ActivityTermId == id).ToListAsync(); var AnAdmins = new List <ApplicationUserVM>(); foreach (var item in anAdminUsers) { var user = await _userExtension.GetAllMultiCondition(x => x.Id == item.User.Id, x => x.Avatar).FirstOrDefaultAsync(); AnAdmins.Add(new ApplicationUserVM(user)); } return(View("~/Views/BusinessView/ActivityTermView/_UserList.cshtml", AnAdmins)); }