Ejemplo n.º 1
0
        public async Task <IActionResult> GetMachines()
        {
            try
            {
                var machines = await _analysisRepository.GetMachinesAsync();

                return(new OkObjectResult(machines));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "Getting machines list failed");
            }

            return(new StatusCodeResult(StatusCodes.Status500InternalServerError));
        }