Example #1
0
        public void PopulateTable(int count, bool includeAudioFile = false)
        {
            var data = GetData(count, includeAudioFile);

            foreach (var record in data)
            {
                _audioService.AddAudioFile(record);
            }
        }
        public async Task <bool> StoreAudioFile(AudioFile audioFile)
        {
            var result = await _audioService.AddAudioFile(audioFile);

            if (!result)
            {
                _logger.LogError($"Error: Could not store audio file with ID: { audioFile.ToString() }");
            }

            return(result);
        }