コード例 #1
0
        public void DeleteCategory(Guid id)
        {
            _categoryRepository.Delete(id);
            var podcast = _podcastRepository.GetByCategory(id);

            foreach (var pod in podcast)
            {
                _episodeRepository.DeleteAllEpisodesForPodCast(pod.Id);
            }
            _podcastRepository.DeleteAllWithCategory(id);
        }
コード例 #2
0
 public void DeleteEpisodes(Guid id)
 {
     _episodeRepository.DeleteAllEpisodesForPodCast(id);
 }