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

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