public async Task <dynamic> GetAudio(string audioId) { string userId = Request.Query .SingleOrDefault(q => string.Compare(q.Key, "userId", StringComparison.OrdinalIgnoreCase) == 0) .Value; try { return(await _crudService.GetAudioAsync(userId, audioId)); } catch (Exception e) { _logger.LogError("Get Audio Failed " + e); return(BadRequest(e.Message)); } }