public ActionResult Edit([Bind(Include = "MaNguoiDung,TenNguoiDung,SDT,DiaChi,UserName,Pass")] NguoiDung nguoiDung)
 {
     if (ModelState.IsValid)
     {
         db.Entry(nguoiDung).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(nguoiDung));
 }
 public ActionResult Edit([Bind(Include = "MaDanhMuc,TenDanhMuc,MetaTitle")] DanhMuc danhMuc)
 {
     if (ModelState.IsValid)
     {
         db.Entry(danhMuc).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(danhMuc));
 }
 public ActionResult Edit([Bind(Include = "UserName,Email,Pass,PhanQuyen")] QuanTriVien quanTriVien)
 {
     if (ModelState.IsValid)
     {
         db.Entry(quanTriVien).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(quanTriVien));
 }
 public ActionResult Edit([Bind(Include = "MaNguoiDung,MaGioHang,TenSanPham,DonGia,SoLuong,Mau,Size,LinkAnh,NgayThang,HinhThucThanhToan,TenNguoiDung,SDT,DiaChi")] ViewGH viewGH)
 {
     if (ModelState.IsValid)
     {
         db.Entry(viewGH).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(viewGH));
 }
 public ActionResult Edit([Bind(Include = "MaCTSP,MetaTitle,Code,Mau,Size,SoLuong,LinkAnh,TrangThai,MaSanPham")] ChiTietSanPham chiTietSanPham)
 {
     if (ModelState.IsValid)
     {
         db.Entry(chiTietSanPham).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaSanPham = new SelectList(db.SanPhams, "MaSanPham", "TenSanPham", chiTietSanPham.MaSanPham);
     return(View(chiTietSanPham));
 }
 public ActionResult Edit([Bind(Include = "MaSanPham,TenSanPham,MetaTitle,DonGia,LinkAnhSP,MoTa,TrangThai,MaDanhMuc")] SanPham sanPham)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sanPham).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaDanhMuc = new SelectList(db.DanhMucs, "MaDanhMuc", "TenDanhMuc", sanPham.MaDanhMuc);
     return(View(sanPham));
 }
 public ActionResult Edit([Bind(Include = "MaPhanHoi,MaNguoiDung,NoiDung,NgayPhanHoi")] PhanHoi phanHoi)
 {
     if (ModelState.IsValid)
     {
         db.Entry(phanHoi).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaNguoiDung = new SelectList(db.NguoiDungs, "MaNguoiDung", "TenNguoiDung", phanHoi.MaNguoiDung);
     return(View(phanHoi));
 }