public async Task Add(Guid providerId, [FromBody] ProviderOrganizationAddRequestModel model) { if (!_currentContext.ManageProviderOrganizations(providerId)) { throw new NotFoundException(); } var userId = _userService.GetProperUserId(User).Value; await _providerService.AddOrganization(providerId, model.OrganizationId, userId, model.Key); }