コード例 #1
0
        public ActionResult News()
        {
            var model = new NewsModel();

            model.GetNewsTitlesForSlideShow();

            return(View("~/Views/News/News.cshtml", model));
        }
コード例 #2
0
        public ActionResult Index()
        {
            var model = new NewsModel();

            model.GetNewsTitlesForSlideShow();

            return(View(model));
        }