public async Task <ActionResult> SetRole(long apartId) { var model = new SetRoleModel() { UserId = apartId, SelectedRoleIdList = await UserRole2ApartRepository.GetRoleIdListAsync(apartId), UserRoleList = await UserRoleRepository.GetListAsync() }; return(PartialView(model)); }
public async Task <ActionResult> SetRole() { var result = await UserRoleRepository.GetListAsync(); return(PartialView(result)); }