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