public async Task UpdatePodcast(EditPodcastViewModel model) { var selectedTags = model .Tags .Where(i => i.IsChecked) .Select(i => new TagDto { Id = i.Id, }); var dto = new PodcastDto { Id = model.Id, Title = model.Title, Description = model.Description, ImageUrl = model.ImageUrl, FeedUrl = model.FeedUrl, SiteUrl = model.SiteUrl, Tags = selectedTags }; await _podcastRepository.UpdatePodcast(dto); }