Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public JsonResult NewDetail(int id)
        {
            var list = NewsInfoDBOperate.GetModelById(id);

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