Beispiel #1
0
        public JsonResult NewsInfoListPager(QueryBase query)
        {
            var totalcount = 0;
            var list       = NewsInfoDBOperate.GetPagerList(query, true, out totalcount);
            PagerList <NewsInfo> pagerList = new PagerList <NewsInfo>();

            pagerList.rows  = list;
            pagerList.total = totalcount;
            return(Json(pagerList));
        }
Beispiel #2
0
        public JsonResult NewDetail(int id)
        {
            var list = NewsInfoDBOperate.GetModelById(id);

            return(Json(list));
        }
Beispiel #3
0
 public ActionResult NewsInfoList()
 {
     ViewBag.Count = NewsInfoDBOperate.GetPublishCount();
     return(View());
 }