Ejemplo n.º 1
0
        public async Task <IActionResult> ActivateMachine(Guid id)
        {
            try
            {
                await _serviceMachine.ActivateMachine(id);

                return(Ok());
            }
            catch (KeyNotFoundException)
            {
                return(NotFound("Machine not found"));
            }
        }