public async Task <HttpResponseMessage> DeleteRuleAsync(string deviceId, string ruleId)
 {
     return(await GetServiceResponseAsync <TableStorageResponse <DeviceRule> >(async() =>
     {
         return await _deviceRulesLogic.DeleteDeviceRuleAsync(deviceId, ruleId);
     }));
 }
Beispiel #2
0
        public async Task <ActionResult> DeleteDeviceRule(string deviceId, string ruleId)
        {
            TableStorageResponse <DeviceRule> response = await _deviceRulesLogic.DeleteDeviceRuleAsync(deviceId, ruleId);

            return(BuildRuleUpdateResponse(response));
        }