Beispiel #1
0
        public async Task <IActionResult> GetConferencesForTodayAsync()
        {
            _logger.LogDebug("GetConferencesForTodayAsync");

            try
            {
                var conferencesResponse = await _testApiClient.GetConferencesForTodayVhoAsync();

                var conferences = ConferencesResponseMapper.Map(conferencesResponse);
                return(Ok(conferences));
            }
            catch (TestApiException e)
            {
                _logger.LogError(e, "Unable to fetch conferences with error '{message}'", e.Message);
                return(StatusCode(e.StatusCode, e.Response));
            }
        }