public async Task AddAsync(CourseEpisode episode, Guid moduleId) { var module = await _moduleRepository.GetAsync(moduleId); module.Episodes.ToList().Add(episode.Id); await _repository.AddAsync(episode.AsDocument()); await _moduleRepository.UpdateAsync(module); }
public async Task UpdateAsync(CourseEpisode episode) { await _repository.UpdateAsync(episode.AsDocument()); }