public IHttpActionResult GetAllMachines()
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            return(Ok(_MachineManager.GetAllMachines()));
        }
        public Task StartAsync(CancellationToken cancellationToken)
        {
            _eventBus.Subscribe <MachineCommandIntegrationEvent, MachineCommandIntegrationEventHandler>();
            _eventBus.StartConsumerChannel();

            foreach (var machine in _machineManager.GetAllMachines())
            {
                machine.StartMachine(false);
            }

            return(Task.CompletedTask);
        }
 public IEnumerable <MachineDto> GetAllMachines()
 {
     return(_machineManager.GetAllMachines());
 }
 public IActionResult GetAllMachines()
 {
     return(Ok(_machineManager.GetAllMachines()));
 }