// GET: LayOut public ActionResult Index() { StypeDao stypesDao = new StypeDao(); ViewBag.stypesDao = stypesDao.getList(); return(PartialView("_PartialMenu")); }
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")); }
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)); }