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