public void RemoveProduct(string productName) { var sensorsList = _databaseWorker.GetSensorsList(productName); _databaseWorker.RemoveProductInfo(productName); _databaseWorker.RemoveProductFromList(productName); _databaseWorker.RemoveSensorsList(productName); foreach (var sensor in sensorsList) { _databaseWorker.RemoveSensor(productName, sensor); _databaseWorker.RemoveSensorValues(productName, sensor); } }