Пример #1
0
        public async Task <IActionResult> ExportRssReport()
        {
            var feed = RssCommon.GetRssFeed("http://feed.cnblogs.com/blog/sitecateogry/108698/rss");
            await _mailer.SendMailAsync("*****@*****.**", "Rss Report", JsonSerializer.Serialize(feed));

            return(Ok());
        }
Пример #2
0
        public IActionResult GetCnBlogAsync()
        {
            var feed = RssCommon.GetRssFeed("http://feed.cnblogs.com/blog/sitecateogry/108698/rss");

            return(new JsonResult(feed));
        }