public Speech AddAudio(string name, byte[] data, Speaker author) { if (data == null) { throw new ArgumentNullException(nameof(data)); } if (author == null) { throw new ArgumentNullException(nameof(author)); } if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentNullException(nameof(name)); } Speech speech = new Speech(name, data, author); author.AddAudio(speech); _audioRepository.Add(speech); return(speech); }