public void AddGateway(GatewayDashBoard gateway) { orchastraion.Tell(new GatewayCreated(gateway.Id)); foreach (var device in gateway.Devices) { orchastraion.Tell(new DeviceCreated(new DeviceInfo(device.Id, gateway.Id))); } }
public void AddDevice(GatewayDashBoard gateway, DeviceDashBoard device) { orchastraion.Tell(new DeviceCreated(new DeviceInfo(device.Id, gateway.Id))); }