public async Task UpdatePodcastAsync(Guid id, PodCastDTO payLoad) { try { var pod = await _rssFeed.GetFeedAsync(payLoad.Url); var episodes = pod.Episodes; pod.Episodes = null; pod.Id = id; pod.Url = payLoad.Url; pod.CategoryId = payLoad.CategoryId; pod.Name = payLoad.Name; pod.UpdateInterval = payLoad.Interval; pod.NextUpdate = DateTime.Now.AddMinutes(payLoad.Interval); _episodeRepository.UpdateEpisodes(id, episodes); _podcastRepository.Update(id, pod); } catch (Exception) {} }