public async Task Accept(Guid providerId, Guid id, [FromBody] ProviderUserAcceptRequestModel model) { var user = await _userService.GetUserByPrincipalAsync(User); if (user == null) { throw new UnauthorizedAccessException(); } await _providerService.AcceptUserAsync(id, user, model.Token); }