コード例 #1
0
 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));
 }
コード例 #2
0
 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));
 }
コード例 #3
0
 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));
 }
コード例 #4
0
 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));
 }
コード例 #5
0
 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));
 }
コード例 #6
0
 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));
 }
コード例 #8
0
 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));
 }
コード例 #9
0
 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));
 }
コード例 #10
0
 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));
 }
コード例 #11
0
 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));
 }
コード例 #12
0
 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));
 }
コード例 #13
0
 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));
 }
コード例 #14
0
 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));
 }
コード例 #15
0
 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));
 }
コード例 #16
0
 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));
 }
コード例 #17
0
 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));
 }
コード例 #18
0
 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));
 }
コード例 #19
0
 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));
 }
コード例 #20
0
 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));
 }
コード例 #21
0
 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));
 }
コード例 #22
0
 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));
 }
コード例 #23
0
 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));
 }
コード例 #24
0
 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));
 }
コード例 #25
0
 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));
 }
コード例 #26
0
 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));
 }
コード例 #27
0
 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));
 }
コード例 #28
0
 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));
 }
コード例 #29
0
 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));
 }
コード例 #30
0
 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));
 }