public async Task Confirm(Guid providerId, Guid id, [FromBody] ProviderUserConfirmRequestModel model) { if (!_currentContext.ProviderManageUsers(providerId)) { throw new NotFoundException(); } var userId = _userService.GetProperUserId(User); await _providerService.ConfirmUsersAsync(providerId, new Dictionary <Guid, string> { [id] = model.Key }, userId.Value); }