Ejemplo n.º 1
0
        public async Task <IActionResult> GetAnalyses()
        {
            try
            {
                var analysisData = await _analysisRepository.GetAnalysisDataAsync();

                return(new OkObjectResult(analysisData));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "Getting Analysis data failed");
            }

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