// GET: Home public ActionResult Index() { var slide = new SlideDao(); ViewBag.Slides = slide.ListAll(); var product = new ProductDao(); ViewBag.NewProducts = product.ListNewProduct(7); ViewBag.FeatureProduct = product.ListFeatureProduct(6); return(View()); }
// GET: Admin/Slide public ActionResult Index() { var model = dao.ListAll(); return(View(model)); }