コード例 #1
0
ファイル: pengbuController.cs プロジェクト: 475383382/My
        /// <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));
        }
コード例 #2
0
ファイル: ProductController.cs プロジェクト: 475383382/My
        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());
        }