public static void UpdateRssChannelsDateBase(User user) { List <string> listUrl = _operationDataBase.GetCurrentListUrlChannels(user.Login); foreach (var url in listUrl) { var rssChannel = RssLoader.ParserRss(url); rssChannel.Link = url; _operationDataBase.UpdateUserContent(user.Login, rssChannel); } }
public static ObservableCollection <Catalog> AddChannelDataBase(string url, string catalog, string login) { var rssChannel = RssLoader.ParserRss(url); rssChannel.Link = url; if (catalog == "" || catalog == null) { catalog = "Different"; } _operationDataBase.AddUserContent(login, rssChannel, catalog); return(UpdaterRss.UpdateTreeViewChannels(login)); }