public ActionResult Create([Bind(Include = "MaNXB,TenNXB,Ghichu")] NhaXuatBan nhaXuatBan)
        {
            if (ModelState.IsValid)
            {
                db.NhaXuatBans.Add(nhaXuatBan);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(nhaXuatBan));
        }
        public ActionResult Create([Bind(Include = "MaTrinhDo,MaTrinhDoNN,TenTrinhDo")] TRINHDO_NGOAINGU tRINHDO_NGOAINGU)
        {
            if (ModelState.IsValid)
            {
                db.TRINHDO_NGOAINGUs.Add(tRINHDO_NGOAINGU);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tRINHDO_NGOAINGU));
        }
        public ActionResult Create([Bind(Include = "STTPX,MaPX,TenPX,TenMH,TenNCC,Soluong,Dongia")] CTPX cTPX)
        {
            if (ModelState.IsValid)
            {
                db.CTPXs.Add(cTPX);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cTPX));
        }
        public ActionResult Create([Bind(Include = "MaPhieuXuat,MaNhanVien,NgayTao,MaKhachHang")] PhieuXuat phieuXuat)
        {
            if (ModelState.IsValid)
            {
                db.PhieuXuats.Add(phieuXuat);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(phieuXuat));
        }
        public ActionResult Create([Bind(Include = "MaLoai,TenLoai,ChiTiet")] LOAIPHONG lOAIPHONG)
        {
            if (ModelState.IsValid)
            {
                db.LOAIPHONGs.Add(lOAIPHONG);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(lOAIPHONG));
        }
        public ActionResult Create([Bind(Include = "MaPDK,MaNV,Ngaydk")] PHIEUDANGKI pHIEUDANGKI)
        {
            if (ModelState.IsValid)
            {
                db.PHIEUDANGKIs.Add(pHIEUDANGKI);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(pHIEUDANGKI));
        }
        public ActionResult Create([Bind(Include = "MaNV,SoQĐ,HinhThuc,NgayHieuLuc,LyDo,SoTien")] CHITIETKHENTHUONG_KYLUAT cHITIETKHENTHUONG_KYLUAT)
        {
            if (ModelState.IsValid)
            {
                db.CHITIETKHENTHUONG_KYLUATs.Add(cHITIETKHENTHUONG_KYLUAT);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cHITIETKHENTHUONG_KYLUAT));
        }
        public ActionResult Create([Bind(Include = "CCCD,hoten")] person person)
        {
            if (ModelState.IsValid)
            {
                db.Persons.Add(person);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(person));
        }
Exemple #9
0
        public ActionResult Create([Bind(Include = "TenCV,MaCV")] CHUCVU cHUCVU)
        {
            if (ModelState.IsValid)
            {
                db.CHUCVUs.Add(cHUCVU);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cHUCVU));
        }
Exemple #10
0
        public ActionResult Create([Bind(Include = "Matheloai,Tentheloai,Ghichu")] Theloai theloai)
        {
            if (ModelState.IsValid)
            {
                db.Theloais.Add(theloai);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(theloai));
        }
Exemple #11
0
        public ActionResult Create([Bind(Include = "MaNCC,TenNCC,SoDienThoai")] NhaCC nhaCC)
        {
            if (ModelState.IsValid)
            {
                db.NhaCCs.Add(nhaCC);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(nhaCC));
        }
Exemple #12
0
        public ActionResult Create([Bind(Include = "MaNV,TenNV,DiaChi,Tuoi,SoDT")] NHANVIEN nHANVIEN)
        {
            if (ModelState.IsValid)
            {
                db.NHANVIENs.Add(nHANVIEN);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(nHANVIEN));
        }
        public ActionResult Create([Bind(Include = "MaDV,TenDV,GiaDV,Luongton")] DICHVU dICHVU)
        {
            if (ModelState.IsValid)
            {
                db.DICHVUs.Add(dICHVU);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(dICHVU));
        }
Exemple #14
0
        public ActionResult Create([Bind(Include = "TintucID,Tentacgia,Noidung")] Tintuc tintuc)
        {
            if (ModelState.IsValid)
            {
                db.Tintucs.Add(tintuc);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tintuc));
        }
Exemple #15
0
        public ActionResult Create([Bind(Include = "MaPhieuNhap,MaNhanVien,NgayTao,MaNCC")] PhieuNhap phieuNhap)
        {
            if (ModelState.IsValid)
            {
                db.PhieuNhaps.Add(phieuNhap);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(phieuNhap));
        }
Exemple #16
0
        public ActionResult Create([Bind(Include = "Makho,Tenkho,Diachi,Thukho")] KHOHANG kHOHANG)
        {
            if (ModelState.IsValid)
            {
                db.KHOHANGs.Add(kHOHANG);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(kHOHANG));
        }
        public ActionResult Create([Bind(Include = "CCCD,congty,hoten")] nghenghiep nghenghiep)
        {
            if (ModelState.IsValid)
            {
                db.nghenghieps.Add(nghenghiep);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(nghenghiep));
        }
        public ActionResult Create([Bind(Include = "MaMH,TenMH,Makho")] MATHANG mATHANG)
        {
            if (ModelState.IsValid)
            {
                db.MATHANGs.Add(mATHANG);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(mATHANG));
        }
        public ActionResult Create([Bind(Include = "RoleID,RoleName")] Role role)
        {
            if (ModelState.IsValid)
            {
                db.Roles.Add(role);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(role));
        }
Exemple #20
0
        public ActionResult Create([Bind(Include = "Masach,Tensach,Tentacgia,Matacgia,Matheloai,NamXB,MaNXB")] Sach sach)
        {
            if (ModelState.IsValid)
            {
                db.Saches.Add(sach);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(sach));
        }
        public ActionResult Create([Bind(Include = "CCCD,tentruong,hoten")] student student)
        {
            if (ModelState.IsValid)
            {
                db.students.Add(student);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(student));
        }
Exemple #22
0
        public ActionResult Create([Bind(Include = "TenCM,MaCM")] CHUYENMON cHUYENMON)
        {
            if (ModelState.IsValid)
            {
                db.CHUYENMONs.Add(cHUYENMON);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cHUYENMON));
        }
Exemple #23
0
        public ActionResult Create([Bind(Include = "ThongtinID,Tieude,Noidung")] THONGTIN tHONGTIN)
        {
            if (ModelState.IsValid)
            {
                db.THONGTINs.Add(tHONGTIN);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tHONGTIN));
        }
        public ActionResult Create([Bind(Include = "MaDuAn,TenDuAn,MaNhanVien,Ngaybatdau,Ngaygiahan,Ngayketthuc,SoLuong,DonGia,ChietKhau")] DUAN dUAN)
        {
            if (ModelState.IsValid)
            {
                db.DUANs.Add(dUAN);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(dUAN));
        }
Exemple #25
0
        public ActionResult Create([Bind(Include = "MaPB,TenPB")] PHONGBAN pHONGBAN)
        {
            if (ModelState.IsValid)
            {
                db.PHONGBANs.Add(pHONGBAN);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(pHONGBAN));
        }
Exemple #26
0
        public ActionResult Create([Bind(Include = "MaKH,TenKH,NamSinh,DiaChi,SoDienThoai")] KHACHHANG kHACHHANG)
        {
            if (ModelState.IsValid)
            {
                db.KHACHHANGs.Add(kHACHHANG);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(kHACHHANG));
        }
        public ActionResult Create([Bind(Include = "MaKhachhang,TenKhachhang,Sodt,Diachi")] Khachhang khachhang)
        {
            if (ModelState.IsValid)
            {
                db.Khachhangs.Add(khachhang);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(khachhang));
        }
        public ActionResult Create([Bind(Include = "Madocgia,Tendocgia,Mamuon,Ngaysinh,Ghichu")] Docgia docgia)
        {
            if (ModelState.IsValid)
            {
                db.Docgias.Add(docgia);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(docgia));
        }
Exemple #29
0
        public ActionResult Create([Bind(Include = "MaNhanVien,MaCC,TenNhanVien,Songaycong,Songaydilam,Songayvangmat")] BANGCHAMCONG bANGCHAMCONG)
        {
            if (ModelState.IsValid)
            {
                db.BANGCHAMCONGs.Add(bANGCHAMCONG);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(bANGCHAMCONG));
        }
Exemple #30
0
        public ActionResult Create([Bind(Include = "Matacgia,Tentacgia,Ghichu")] Tacgia tacgia)
        {
            if (ModelState.IsValid)
            {
                db.Tacgias.Add(tacgia);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tacgia));
        }