Beispiel #1
0
        public ActionResult Rss()
        {
            //修正,此处control应该从bll层获取数据。Index是修正的方案. 此处已不使用
            RSSEntity rss    = ArticleModel.GetList().ToDefaultRss();
            RssResult result = new RssResult();

            result.Data = rss;
            return(result);
        }
Beispiel #2
0
        // 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();
        }
Beispiel #3
0
 public RssResult(RSSEntity data, Encoding encode)
 {
     Data            = data;
     ContentEncoding = encode;
 }