예제 #1
0
        /// <summary>
        /// </summary>
        /// <param name="noteID"></param>
        /// <param name="flag">0 前端 1 管理</param>
        /// <returns></returns>
        public ActionResult NotesDetail(int noteID, int flag = 0)
        {
            this.SessionExt()["moduleName"] = "Announcement";
            ViewBag.noteID = noteID;
            ViewBag.flag   = flag;
            string    sqlwhere = string.Format(@"  NoteId={0}", noteID);
            Sys_Notes model    = _notesManager.GetListNotes(sqlwhere).FirstOrDefault();

            if (model != null)
            {
                ViewBag.NoteSort =
                    _notesManager.GetNotesSortList(" isDelete=0 AND Type=0 AND  Id=" + model.SortID).FirstOrDefault();
            }
            return(View());
        }