public ActionResult Rss() { //修正,此处control应该从bll层获取数据。Index是修正的方案. 此处已不使用 RSSEntity rss = ArticleModel.GetList().ToDefaultRss(); RssResult result = new RssResult(); result.Data = rss; return(result); }
// GET: RSS public ActionResult Index() { DateTime beginTime = System.DateTime.Now.AddDays(-15); RSSEntity rss = articleService.GetArticleList(beginTime).ToDefaultRss(); RssResult result = new RssResult(); result.Data = rss; return(result); //return View(); }
public RssResult(RSSEntity data, Encoding encode) { Data = data; ContentEncoding = encode; }