public async Task AddUserToGroup(Guid userId, Guid groupId) { string variabel = "$links/members"; var url = $"{_graphApiUrl}/groups/{groupId}/{variabel}?{_version}"; AddMemberToGroup addMemberToGroup = new AddMemberToGroup($"{_graphApiUrl}/directoryObjects/{userId}"); await _azureAdSecuredApiConnector.Post(url, addMemberToGroup, RESOURCE); }
public async Task HandleAsync(AddMemberToGroup command) => await CreateForAuthenticatedUserAsync(command);