public ActionResult AddYouTubeProviderToTimeline(YouTubeProviderConfig providerConfig) { var config = SocialAllianceConfig.Read(); var timelineConfig = config.ReadTimeline(providerConfig.TimelineId, true); if (ModelState.IsValid) { timelineConfig.YouTubeProviders.Add(providerConfig); SocialAllianceConfig.CreateOrUpdateTimeline(timelineConfig); } return PartialView("_YouTubeProvidersListPartial", timelineConfig); }
public YouTubeProvider(YouTubeProviderConfig config) { User = config.User; PlaylistTitle = config.PlaylistTitle; VideoResultsCount = config.VideoResultsCount; PlaylistResultsCount = config.PlaylistResultsCount; VideosStartResultsIndex = config.VideosStartResultsIndex; PlaylistsStartResultsIndex = config.PlaylistsStartResultsIndex; IncludePlaylistVideos = config.IncludePlaylistVideos; UserVideosOrder = config.UserVideosOrder; PlaylistVideosOrder = config.PlaylistVideosOrder; IncludeHowLongSincePublished = config.IncludeHowLongSincePublished; }