public SensorInfo GetSensorInfo(string productName, string path) { var sensorEntity = _database.GetSensorInfo(productName, path); return(sensorEntity != null ? new SensorInfo(sensorEntity) : null); }