コード例 #1
0
 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));
 }
コード例 #2
0
 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));
 }
コード例 #3
0
 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));
 }
コード例 #4
0
 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));
 }
コード例 #5
0
 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));
 }