public async Task <DeviceGroupApiModel> UpdateAsync(string id, [FromBody] DeviceGroupApiModel input) { return(new DeviceGroupApiModel(await this.storage.UpdateDeviceGroupAsync(id, input.ToServiceModel(), input.ETag))); }
public async Task <DeviceGroupApiModel> CreateAsync([FromBody] DeviceGroupApiModel input) { return(new DeviceGroupApiModel(await this.storage.CreateDeviceGroupAsync(input.ToServiceModel()))); }