public ActionResult Edit([Bind(Include = "MaDV,TenDV,DonGiaVN")] DICHVU dICHVU) { if (ModelState.IsValid) { db.Entry(dICHVU).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dICHVU)); }
public ActionResult Edit([Bind(Include = "MaHD,MaKH,SoTien,NgayTT,HinhThucTT")] HOADON hOADON) { if (ModelState.IsValid) { db.Entry(hOADON).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(hOADON)); }
public ActionResult Edit([Bind(Include = "MaKH,NgayDen,NgayDi,ThanhToan")] THUEPHONG tHUEPHONG) { if (ModelState.IsValid) { db.Entry(tHUEPHONG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tHUEPHONG)); }
public ActionResult Edit([Bind(Include = "MaKH,HoTenKH,SoDT")] KhachHang khachHang) { if (ModelState.IsValid) { db.Entry(khachHang).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(khachHang)); }
public ActionResult Edit([Bind(Include = "MaPhong,TenPhong,LoaiPhong,TrangThai,GiaPhong")] PHONG pHONG) { if (ModelState.IsValid) { db.Entry(pHONG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pHONG)); }