예제 #1
0
        public ActionResult JsonList()
        {
            var news = CurrentItem.GetNews().Select(n => new { n.Title, n.Url });

            return(Json(news));
        }
예제 #2
0
 public override ActionResult Index()
 {
     return(View("Index", new NewsContainerViewData {
         Container = CurrentItem, News = CurrentItem.GetNews()
     }));
 }