public async Task RemoveSelectedRole() { await _userEndPoint.RemoveUserFromRole(SelectedUser.Id, SelectedRoleToRemove); SelectedUserRoles.Remove(SelectedRoleToRemove); AvailableRoles.Add(SelectedRoleToRemove); }
public async void RemoveSelectedRole() { await _userEndpoint.RemoveUserFromRole(SelectedUser.Id, SelectedRoleToRemove); AvailableRoles.Add(SelectedRoleToRemove); SelectedUserRoles.Remove(SelectedRoleToRemove); NotifyOfPropertyChange(() => Users); }