aboutsummaryrefslogtreecommitdiff
path: root/Main
diff options
context:
space:
mode:
Diffstat (limited to 'Main')
-rw-r--r--Main/Program.cs4
1 files changed, 2 insertions, 2 deletions
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<Article> 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");
}
}
}