Beispiel #1
0
        /// <summary>
        ///  内容详情
        /// </summary>
        /// Author  : Napoleon
        /// Created : 2015-08-07 09:49:10
        public ActionResult Contents(string id)
        {
            DataTable contents = _newsContents.GetNewsContentById(id);

            ViewData["NewsMenuId"]  = contents.Rows[0]["NewsMenuId"];  //菜单节点
            ViewData["NewsTitles"]  = GetContentsTitle(contents);      //新闻标题
            ViewData["NewsContent"] = contents.Rows[0]["NewsContent"]; //新闻内容
            ViewData["Attachs"]     = GetContentsAttach(contents);     //新闻附件
            return(View());
        }
 public ActionResult Edit(string id)
 {
     ViewData["NewsContent"] = _newsContentsService.GetNewsContentById(id);
     return(View());
 }