public ActionResult FeedBack() { Models.IRepository <Models.ModelView.CustomerView> repository = Models.Dao.CustomerDao.Instance; var q = repository.Gets(); ViewBag.list_product = q; return(View()); }
public ActionResult ProductDetail(int id) { Models.IRepository <Models.ModelView.ProductView> repository = Models.Dao.ProductDao.Instance; var q = repository.GetId(id); var q1 = repository.Gets(); ViewBag.listproduct = q; ViewBag.listproductall = q1; return(View()); }
public ActionResult ChangePassword() { if (Session["inforCus"] == null) { return(RedirectToAction("LoginAndRegister")); } Models.IRepository <Models.ModelView.CustomerView> repository = Models.Dao.CustomerDao.Instance; var q = repository.Gets(); ViewBag.list_product = q; return(View()); }
public ActionResult EditProduct(int id) { /*var id = int.Parse(Request.Form["id"]);*/ Models.IRepository <Models.ModelView.ProductView> Product = Models.Dao.ProductDao.Instance; Session["inforProduct"] = Product.GetId(id); Models.IRepository <Models.ModelView.CategoryView> Category = Models.Dao.CategoryDao.Instance; Session["listCate"] = Category.Gets(); Models.IRepository <Models.ModelView.Brand> Brand = Models.Dao.BrandDao.Instance; Session["listBrand"] = Brand.Gets(); return(View()); }
// PRODUCT public ActionResult Product(string category_name) { Models.IRepository <Models.ModelView.CategoryView> category = Models.Dao.CategoryDao.Instance; Session["listCate"] = category.Gets(); Models.IRepository <Models.ModelView.Brand> brand = Models.Dao.BrandDao.Instance; Session["listBrand"] = brand.Gets(); Models.IRepository <Models.ModelView.ProductView> product = Models.Dao.ProductDao.Instance; Session["listProduct"] = product.Gets(); ViewBag.data = Session["listProduct"]; return(View()); }
//Brand public ActionResult Brand() { Models.IRepository <Models.ModelView.Brand> brand = Models.Dao.BrandDao.Instance; Session["listBrands"] = brand.Gets(); return(View()); }
//Order public ActionResult Order() { Models.IRepository <Models.ModelView.OrderView> order = Models.Dao.OrderDao.Instance; Session["listOrder"] = order.Gets(); return(View()); }
//Customer public ActionResult Customer() { Models.IRepository <Models.ModelView.CustomerView> customer = Models.Dao.CustomerDao.Instance; Session["listCus"] = customer.Gets(); return(View()); }
//FeedBack public ActionResult FeedBack() { Models.IRepository <Models.ModelView.FeedBackView> feedback = Models.Dao.FeedBackDao.Instance; Session["listFeedback"] = feedback.Gets(); return(View()); }
//Category public ActionResult Category() { Models.IRepository <Models.ModelView.CategoryView> Category = Models.Dao.CategoryDao.Instance; Session["listCate"] = Category.Gets(); return(View()); }