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