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)); }
public async Task <InvokeResult> UpdateDeviceGroupAsync([FromBody] DeviceGroup deviceGroup) { var repo = await GetDeviceRepositoryWithSecretsAsync(); SetUpdatedProperties(deviceGroup); return(await _deviceGroupManager.UpdateDeviceGroupAsync(repo, deviceGroup, OrgEntityHeader, UserEntityHeader)); }