public ActionResult Edit([Bind(Include = "MaPhong,TenLoaiPHong,HienTrang,SoNguoi,SoDTPhong")] PHONG pHONG) { if (ModelState.IsValid) { db.Entry(pHONG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pHONG)); }
public ActionResult Edit([Bind(Include = "MaTrinhDo,MaTrinhDoNN,TenTrinhDo")] TRINHDO_NGOAINGU tRINHDO_NGOAINGU) { if (ModelState.IsValid) { db.Entry(tRINHDO_NGOAINGU).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tRINHDO_NGOAINGU)); }
public ActionResult Edit([Bind(Include = "STTPX,MaPX,TenPX,TenMH,TenNCC,Soluong,Dongia")] CTPX cTPX) { if (ModelState.IsValid) { db.Entry(cTPX).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cTPX)); }
public ActionResult Edit([Bind(Include = "MaPhieuXuat,MaNhanVien,NgayTao,MaKhachHang")] PhieuXuat phieuXuat) { if (ModelState.IsValid) { db.Entry(phieuXuat).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(phieuXuat)); }
public ActionResult Edit([Bind(Include = "MaLoai,TenLoai,ChiTiet")] LOAIPHONG lOAIPHONG) { if (ModelState.IsValid) { db.Entry(lOAIPHONG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(lOAIPHONG)); }
public ActionResult Edit([Bind(Include = "MaPDK,MaNV,Ngaydk")] PHIEUDANGKI pHIEUDANGKI) { if (ModelState.IsValid) { db.Entry(pHIEUDANGKI).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pHIEUDANGKI)); }
public ActionResult Edit([Bind(Include = "MaNV,SoQĐ,HinhThuc,NgayHieuLuc,LyDo,SoTien")] CHITIETKHENTHUONG_KYLUAT cHITIETKHENTHUONG_KYLUAT) { if (ModelState.IsValid) { db.Entry(cHITIETKHENTHUONG_KYLUAT).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cHITIETKHENTHUONG_KYLUAT)); }
public ActionResult Edit([Bind(Include = "MaCV,TenCV")] CHUCVU cHUCVU) { if (ModelState.IsValid) { db.Entry(cHUCVU).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cHUCVU)); }
public ActionResult Edit([Bind(Include = "MaNCC,TenNCC,SoDienThoai")] NhaCC nhaCC) { if (ModelState.IsValid) { db.Entry(nhaCC).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nhaCC)); }
public ActionResult Edit([Bind(Include = "MaNV,TenNV,DiaChi,Tuoi,SoDT")] NHANVIEN nHANVIEN) { if (ModelState.IsValid) { db.Entry(nHANVIEN).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nHANVIEN)); }
public ActionResult Edit([Bind(Include = "Matheloai,Tentheloai,Ghichu")] Theloai theloai) { if (ModelState.IsValid) { db.Entry(theloai).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(theloai)); }
public ActionResult Edit([Bind(Include = "MaDV,TenDV,GiaDV,Luongton")] DICHVU dICHVU) { if (ModelState.IsValid) { db.Entry(dICHVU).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dICHVU)); }
public ActionResult Edit([Bind(Include = "TintucID,Tentacgia,Noidung")] Tintuc tintuc) { if (ModelState.IsValid) { db.Entry(tintuc).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tintuc)); }
public ActionResult Edit([Bind(Include = "MaNXB,TenNXB,Ghichu")] NhaXuatBan nhaXuatBan) { if (ModelState.IsValid) { db.Entry(nhaXuatBan).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nhaXuatBan)); }
public ActionResult Edit([Bind(Include = "Madocgia,Tendocgia,Mamuon,Ngaysinh,Ghichu")] Docgia docgia) { if (ModelState.IsValid) { db.Entry(docgia).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(docgia)); }
public ActionResult Edit([Bind(Include = "CCCD,hoten")] person person) { if (ModelState.IsValid) { db.Entry(person).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(person)); }
public ActionResult Edit([Bind(Include = "CCCD,congty,hoten")] nghenghiep nghenghiep) { if (ModelState.IsValid) { db.Entry(nghenghiep).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(nghenghiep)); }
public ActionResult Edit([Bind(Include = "Makho,Tenkho,Diachi,Thukho")] KHOHANG kHOHANG) { if (ModelState.IsValid) { db.Entry(kHOHANG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(kHOHANG)); }
public ActionResult Edit([Bind(Include = "RoleID,RoleName")] Role role) { if (ModelState.IsValid) { db.Entry(role).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(role)); }
public ActionResult Edit([Bind(Include = "MaMH,TenMH,Makho")] MATHANG mATHANG) { if (ModelState.IsValid) { db.Entry(mATHANG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(mATHANG)); }
public ActionResult Edit([Bind(Include = "CCCD,tentruong,hoten")] student student) { if (ModelState.IsValid) { db.Entry(student).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(student)); }
public ActionResult Edit([Bind(Include = "Masach,Tensach,Tentacgia,Matacgia,Matheloai,NamXB,MaNXB")] Sach sach) { if (ModelState.IsValid) { db.Entry(sach).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sach)); }
public ActionResult Edit([Bind(Include = "ThongtinID,Tieude,Noidung")] THONGTIN tHONGTIN) { if (ModelState.IsValid) { db.Entry(tHONGTIN).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tHONGTIN)); }
public ActionResult Edit([Bind(Include = "TenCM,MaCM")] CHUYENMON cHUYENMON) { if (ModelState.IsValid) { db.Entry(cHUYENMON).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cHUYENMON)); }
public ActionResult Edit([Bind(Include = "MaPB,TenPB")] PHONGBAN pHONGBAN) { if (ModelState.IsValid) { db.Entry(pHONGBAN).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pHONGBAN)); }
public ActionResult Edit([Bind(Include = "MaDuAn,TenDuAn,MaNhanVien,Ngaybatdau,Ngaygiahan,Ngayketthuc,SoLuong,DonGia,ChietKhau")] DUAN dUAN) { if (ModelState.IsValid) { db.Entry(dUAN).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dUAN)); }
public ActionResult Edit([Bind(Include = "MaKhachhang,TenKhachhang,Sodt,Diachi")] Khachhang khachhang) { if (ModelState.IsValid) { db.Entry(khachhang).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(khachhang)); }
public ActionResult Edit([Bind(Include = "MaKH,TenKH,NamSinh,DiaChi,SoDienThoai")] KHACHHANG kHACHHANG) { if (ModelState.IsValid) { db.Entry(kHACHHANG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(kHACHHANG)); }
public ActionResult Edit([Bind(Include = "MaNhanVien,MaCC,TenNhanVien,Songaycong,Songaydilam,Songayvangmat")] BANGCHAMCONG bANGCHAMCONG) { if (ModelState.IsValid) { db.Entry(bANGCHAMCONG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bANGCHAMCONG)); }
public ActionResult Edit([Bind(Include = "MaNV,STT,MaTrinhDo,MaCM")] TRINHDO_CHUYENMON tRINHDO_CHUYENMON) { if (ModelState.IsValid) { db.Entry(tRINHDO_CHUYENMON).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tRINHDO_CHUYENMON)); }