public async Task <InvokeResult> UpdateDeviceGroupAsync(string devicerepoid, [FromBody] DeviceGroup deviceGroup)
        {
            var repo = await _repoManager.GetDeviceRepositoryAsync(devicerepoid, OrgEntityHeader, UserEntityHeader);

            SetUpdatedProperties(deviceGroup);
            return(await _deviceGroupManager.UpdateDeviceGroupAsync(repo, deviceGroup, OrgEntityHeader, UserEntityHeader));
        }
Example #2
0
        public async Task <InvokeResult> UpdateDeviceGroupAsync([FromBody] DeviceGroup deviceGroup)
        {
            var repo = await GetDeviceRepositoryWithSecretsAsync();

            SetUpdatedProperties(deviceGroup);
            return(await _deviceGroupManager.UpdateDeviceGroupAsync(repo, deviceGroup, OrgEntityHeader, UserEntityHeader));
        }