Ejemplo n.º 1
0
        public PartialViewResult HeaderPartial()

        {
            AboutDao dbCat = new AboutDao();

            return(PartialView(dbCat.ToActive()));
        }
Ejemplo n.º 2
0
        public PartialViewResult FooterPartial()

        {
            FooterDao dbCat = new FooterDao();
            AboutDao  abDao = new AboutDao();

            ViewBag.About = abDao.ToActive();
            return(PartialView(dbCat.ToActive()));
        }
Ejemplo n.º 3
0
        public ActionResult Index()
        {
            CategoryDao cateDB = new CategoryDao();

            ViewBag.HocTieuBieu = cateDB.TToListActivePositionByParentID(3, 26).SingleOrDefault();


            AboutDao dbCat = new AboutDao();

            ViewBag.About = dbCat.ToActive();

            StatsInfoDao stiDB = new StatsInfoDao();

            ViewBag.StatsInfo = stiDB.ToListActive();

            return(View());
        }