コード例 #1
0
        // 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());
        }
コード例 #2
0
        // GET: Admin/Slide
        public ActionResult Index()
        {
            var model = dao.ListAll();

            return(View(model));
        }