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