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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }