Esempio n. 1
0
        public async Task AddUserRegistrationOrganizationAsync(IEnumerable <string> deviceIds, string organizationId)
        {
            await PatchTagsForUserDevicesAsync(deviceIds, UpdateOperationType.Add, $"organizationId:{organizationId}");

            if (deviceIds.Any() && InstallationDeviceEntity.IsInstallationDeviceId(deviceIds.First()))
            {
                var entities = deviceIds.Select(e => new InstallationDeviceEntity(e));
                await _installationDeviceRepository.UpsertManyAsync(entities.ToList());
            }
        }