public async void RemoveSelectedRole() { await userEndpoint.RemoveUserFromRole(SelectedUser.Id, SelectedUserRole); AvaliableRoles.Add(SelectedUserRole); UserRoles.Remove(SelectedUserRole); }
private async Task LoadRoles() { var rolesList = await userEndpoint.GetAllRoles(); foreach (var role in rolesList) { if (UserRoles.IndexOf(role.Value) < 0) { AvaliableRoles.Add(role.Value); } } }