public async Task <IActionResult> GetAudioRecordingLinksByHearingId(Guid hearingId) { _logger.LogDebug("GetAudioRecordingLinksByHearingId {hearingId}", hearingId); try { var response = await _videoApiClient.GetAudioRecordingLinkAsync(hearingId); return(Ok(response)); } catch (VideoApiException e) { return(StatusCode(e.StatusCode, e.Response)); } }
public async Task <IActionResult> GetAudioRecordingLinkAsync(Guid hearingId) { _logger.LogInformation($"Getting audio recording for hearing: {hearingId}"); try { var response = await _videoAPiClient.GetAudioRecordingLinkAsync(hearingId); return(Ok(new HearingAudioRecordingResponse { AudioFileLinks = response.AudioFileLinks })); } catch (VideoApiException ex) { return(StatusCode(ex.StatusCode, ex.Response)); } }