From 7e517f6cc063ae8e25e9025cdbd75984f17bcbd7 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 10 Feb 2019 17:22:48 +0000 Subject: Made interface print out number of articles written --- Main/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Main') diff --git a/Main/Program.cs b/Main/Program.cs index a96762c..cb5bbff 100644 --- a/Main/Program.cs +++ b/Main/Program.cs @@ -24,10 +24,10 @@ namespace Main { await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml") }; List
articles = ParserService.ParseMultiple(xmls, configs).ToList(); - Console.WriteLine("Wrote"); using (var db = new DatabaseContext()) { - await db.InsertArticles(articles); + int records = await db.InsertArticles(articles); + Console.WriteLine($"{records} written to database"); } } } -- cgit v1.2.3-13-gbd6f