public void Update(Smarthome device) { _devices[device.Key] = device; }
public void Add(Smarthome device) { device.Key = Guid.NewGuid().ToString(); _devices[device.Key] = device; }