public async Task <ActionResult> user_edit(int id) { usersModel list1 = iub.UserSelectBy(id); List <roleModel> list2 = await iro.RoleSelect(); foreach (roleModel item in list2) { if (item.user_identity == list1.user_identity) { list1.user_identity = Convert.ToString(item.r_id); } } await NewMethod(); ViewData.Model = list1; return(View()); }