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); }
public void DeleteEpisodes(Guid id) { _episodeRepository.DeleteAllEpisodesForPodCast(id); }