/// <summary>
 /// Retrieve an existing rule for a device/ruleId pair. If a rule does not exist
 /// it will return null. This method is best used when you know the rule exists.
 /// </summary>
 /// <param name="deviceId"></param>
 /// <param name="ruleId"></param>
 /// <returns></returns>
 public async Task <DeviceRule> GetDeviceRuleAsync(string deviceId, string ruleId)
 {
     return(await _deviceRulesRepository.GetDeviceRuleAsync(deviceId, ruleId));
 }