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());
        }
示例#4
0
        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());
        }
示例#5
0
        // 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());
        }
示例#6
0
 //Brand
 public ActionResult Brand()
 {
     Models.IRepository <Models.ModelView.Brand> brand = Models.Dao.BrandDao.Instance;
     Session["listBrands"] = brand.Gets();
     return(View());
 }
示例#7
0
 //Order
 public ActionResult Order()
 {
     Models.IRepository <Models.ModelView.OrderView> order = Models.Dao.OrderDao.Instance;
     Session["listOrder"] = order.Gets();
     return(View());
 }
示例#8
0
 //Customer
 public ActionResult Customer()
 {
     Models.IRepository <Models.ModelView.CustomerView> customer = Models.Dao.CustomerDao.Instance;
     Session["listCus"] = customer.Gets();
     return(View());
 }
示例#9
0
 //FeedBack
 public ActionResult FeedBack()
 {
     Models.IRepository <Models.ModelView.FeedBackView> feedback = Models.Dao.FeedBackDao.Instance;
     Session["listFeedback"] = feedback.Gets();
     return(View());
 }
示例#10
0
 //Category
 public ActionResult Category()
 {
     Models.IRepository <Models.ModelView.CategoryView> Category = Models.Dao.CategoryDao.Instance;
     Session["listCate"] = Category.Gets();
     return(View());
 }