Пример #1
0
        /// <summary>
        /// 返回公共列表
        /// </summary>
        /// <returns></returns>
        public JsonResult AjaxGetAllNotice()
        {
            List <Notice> notices = NoticeLogic.GetNotices();

            return(Json(new
            {
                code = 0,
                data = notices
            }));
        }
Пример #2
0
 /// <summary>
 /// 时间线显示所有系统公告
 /// </summary>
 /// <returns></returns>
 public ActionResult Index()
 {
     ViewBag.Notice = NoticeLogic.GetNotices(0);
     return(View());
 }