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()); }
public IActionResult GetCnBlogAsync() { var feed = RssCommon.GetRssFeed("http://feed.cnblogs.com/blog/sitecateogry/108698/rss"); return(new JsonResult(feed)); }