public async Task <HttpResponseMessage> AddDeviceAsync(dynamic device) { return(await GetServiceResponseAsync <DeviceWithKeys>(async() => { return await _deviceLogic.AddDeviceAsync(device, User.Identity.Name); })); }
public async Task <HttpResponseMessage> AddDeviceAsync(dynamic device) { ValidateArgumentNotNull("device", device); return(await GetServiceResponseAsync <DeviceWithKeys>(async() => { return await _deviceLogic.AddDeviceAsync(device); })); }