public ActionResult News() { NewsModel _newsModel = new NewsModel(); _newsModel.NewsList = _newsService.GetAll().Where(x => x.Active == State.Active).ToList(); return View(_newsModel); }
public ActionResult NewsDetail(int newsId) { NewsModel _newsModel = new NewsModel(); _newsModel.News = _newsService.Find(newsId); return View(_newsModel); }