Esempio n. 1
0
        public async Task <IActionResult> GetUserSatisfactionAsync()
        {
            try
            {
                _logger.LogInformation("Loading all available user feedback");
                var statisticsData = await _statisticsProvider.GetFeedbackAsync();

                return(Ok(statisticsData.Select(report => report.Map())));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "An unexpected Error occured while loading user feedback.");
                return(StatusCode(500));
            }
        }