Beispiel #1
0
        /// <summary>
        ///  Wywołanie funcji Update to kanałyt LoadOneKanal
        /// </summary>
        /// <param name="kanal"></param>/
        /// <returns></returns>
        public static List <Kanaly> LoadOneKanal(string kanal)
        {
            MongoCRUD db   = new MongoCRUD("RSS");
            var       load = db.LoadRecord <Kanaly>("Kanaly", kanal);

            return(load);
        }
Beispiel #2
0
        public static string LoadArticle(string kanal, string title)
        {
            MongoCRUD db   = new MongoCRUD("RSS");
            var       load = db.LoadRecord <Kanaly>("Kanaly", kanal).First();
            //foreach (var items in load.item)
            //{

            //    Console.WriteLine(items.Title);

            //}

            var art = load.item.Where(x => x.Title == title).First();


            return(art.Text);
        }