/// <summary> /// 篷布图片 /// </summary> /// <returns></returns> public ActionResult Peng() { List <Authority> AuthList = new List <Authority>(); List <newst> list = new List <newst>(); list = newsbll.GetTop10("10", " del =1"); AuthList = authbll.getAll(); ViewBag.AuthList = AuthList; return(View(list)); }
public ActionResult count() { ViewBag.pcount = prbll.productList().Count(); ViewBag.a = _aBLL.getAll().Count(); ViewBag.gszx = newsbll.GetAll(" newstype in(SELECT id from newstype WHERE ppid = 1 and del =1)").Count(); ViewBag.xuzn = newsbll.GetAll(" newstype in(SELECT id from newstype WHERE ppid = 2 and del =1)").Count(); ViewBag.vo = _video.allList().Count(); return(View()); }