public PartialViewResult HeaderPartial() { AboutDao dbCat = new AboutDao(); return(PartialView(dbCat.ToActive())); }
public PartialViewResult FooterPartial() { FooterDao dbCat = new FooterDao(); AboutDao abDao = new AboutDao(); ViewBag.About = abDao.ToActive(); return(PartialView(dbCat.ToActive())); }
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()); }