Beispiel #1
0
        // GET: LayOut
        public ActionResult Index()
        {
            StypeDao stypesDao = new StypeDao();

            ViewBag.stypesDao = stypesDao.getList();
            return(PartialView("_PartialMenu"));
        }
Beispiel #2
0
        public ActionResult Combobox()
        {
            BrandDao brandDao = new BrandDao();

            ViewBag.Brand = brandDao.getList();
            StypeDao stypesDao = new StypeDao();

            ViewBag.Stype = stypesDao.getList();
            ColorDao colorDao = new ColorDao();

            ViewBag.Color = colorDao.getList();
            return(PartialView("_PartialCombobox"));
        }
Beispiel #3
0
        public ActionResult SideBar()
        {
            BrandDao brandDao = new BrandDao();

            ViewBag.brandDao = brandDao.getList();
            StypeDao stypesDao = new StypeDao();

            ViewBag.stypesDao = stypesDao.getList();
            ColorDao colorDao = new ColorDao();

            ViewBag.colorDao = colorDao.getList();
            return(PartialView("_PartialSideBar"));
        }
        public ActionResult EditProducts(string id)
        {
            BrandDao brandDao = new BrandDao();

            ViewBag.Brand = brandDao.getList();
            StypeDao stypesDao = new StypeDao();

            ViewBag.Stype = stypesDao.getList();
            ColorDao colorDao = new ColorDao();

            ViewBag.Color = colorDao.getList();
            var model = new ProductDao().getByID(id);

            return(View(model));
        }