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

            return(BuildRuleUpdateResponse(response));
        }