示例#1
0
        public ActionResult News()
        {
            NewsModel _newsModel = new NewsModel();
            _newsModel.NewsList = _newsService.GetAll().Where(x => x.Active == State.Active).ToList();

            return View(_newsModel);
        }
示例#2
0
        public ActionResult NewsDetail(int newsId)
        {
            NewsModel _newsModel = new NewsModel();
            _newsModel.News = _newsService.Find(newsId);

            return View(_newsModel);
        }