Пример #1
0
        public ActionResult LoadAnnouncement()
        {
            List <NoticeEntity> data =
                noticeBll.GetList(
                    n =>
                    n.TypeId == 2 && n.DeleteMark == (int)DeleteMarkEnum.NotDelete &&
                    n.EnabledMark == (int)EnabledMarkEnum.Enabled).ToList();

            return(Success("操作成功", data));
        }
Пример #2
0
        /// <summary>
        /// 首页公告列表
        /// </summary>
        /// <returns>返回列表Json</returns>
        public ActionResult getMyNotice()
        {
            var data = noticeBLL.GetList();

            return(Content(data.ToJson()));
        }
Пример #3
0
        public JObject GetList(JObject pagerParas)
        {
            NoticeBLL noticeBll = new NoticeBLL();

            return(noticeBll.GetList(pagerParas));
        }
Пример #4
0
        public ActionResult GetListJson(string queryJson)
        {
            var data = noticebll.GetList(queryJson);

            return(ToJsonResult(data));
        }