Esempio n. 1
0
        public async Task <IActionResult> Create([Bind("chiphi_id,doan_id,chiphi_total,chiphi_chitiet")] Tour_chiphi tour_chiphi)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tour_chiphi);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tour_chiphi));
        }
Esempio n. 2
0
        public async Task <IActionResult> Create([Bind("kh_id,kh_ten,kh_sdt,kh_ngaysinh,kh_email,kh_cmnd")] Tour_khachhang tour_khachhang)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tour_khachhang);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tour_khachhang));
        }
Esempio n. 3
0
        public async Task <IActionResult> Create([Bind("ct_id,tour_id,dd_id,ct_thutu")] Tour_chitiet tour_chitiet)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tour_chitiet);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tour_chitiet));
        }
Esempio n. 4
0
        public async Task <IActionResult> Create([Bind("loai_id,loai_ten,loai_mota")] Tour_loai tour_loai)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tour_loai);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tour_loai));
        }
Esempio n. 5
0
        public async Task <IActionResult> Create([Bind("dd_id,dd_thanhpho,dd_ten,dd_mota")] Tour_diadiem tour_diadiem)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tour_diadiem);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tour_diadiem));
        }
Esempio n. 6
0
        public async Task <IActionResult> Create([Bind("gia_id,gia_sotien,tour_id,gia_tungay,gia_denngay")] Tour_gia tour_gia)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tour_gia);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tour_gia));
        }
Esempio n. 7
0
        public async Task <IActionResult> Create([Bind("nv_id,nv_ten,nv_sdt,nv_ngaysinh,nv_email,nv_nhiemvu")] Tour_nhanvien tour_nhanvien)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tour_nhanvien);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tour_nhanvien));
        }
Esempio n. 8
0
        public async Task <IActionResult> Create([Bind("doan_id,tour_id,gia_id,doan_name,doan_ngaydi,doan_ngayve,doan_chitietchuongtrinh")] Tour_doan tour_doan)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tour_doan);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tour_doan));
        }
Esempio n. 9
0
        public async Task <IActionResult> Create([Bind("nguoidi_id,doan_id,nguoidi_dsnhanvien,nguoidi_dskhach")] Tour_nguoidi tour_nguoidi)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tour_nguoidi);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tour_nguoidi));
        }