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

            return(await GetServiceResponseAsync <DeviceWithKeys>(async() =>
            {
                return await _deviceLogic.AddDeviceAsync(device);
            }));
        }