Beispiel #1
0
        public async Task <IActionResult> ConfirmHearingById(Guid hearingId, UpdateBookingStatusRequest request)
        {
            _logger.LogDebug($"ConfirmHearingById {hearingId}");

            try
            {
                var response = await _testApiClient.ConfirmHearingByIdAsync(hearingId, request);

                _logger.LogDebug("Hearing confirmed with id {id}", response.Id);
                return(Created(nameof(ConfirmHearingById), response));
            }
            catch (TestApiException e)
            {
                _logger.LogError(e, "Unable to confirm hearing with error '{message}'", e.Message);
                return(StatusCode(e.StatusCode, e.Response));
            }
        }