public ActionResult CreateDetails(HoaDonDetails hoaDonDetails) { var hoaDonDao = new HoaDonDao(); var ctHDDao = new CT_HoaDonDao(); var lopHocDao = new LopHocDao(); var hocVienDao = new HocVienDao(); var hocVien = new HocVien(); var ctHD = new CT_HoaDon(); var lopHoc = new LopHoc(); var hoaDon = new HoaDon(); return(RedirectToAction("Index")); }
public IActionResult Details(int?Id) { if (Id == null) { return(NotFound()); } else { var hoadonDetails = new HoaDonDetails() { hoadon = ihoadons.GetHoaDon(Id), cthoadons = icthoadons.getCTHoaS(Id) }; idhoadon = hoadonDetails.hoadon.Id; return(View(hoadonDetails)); } }
public IActionResult Details(int?Id) { if (Id == null) { return(NotFound()); } else { ViewBag.Name = HttpContext.Session.GetString("Ten"); var hoadonDetails = new HoaDonDetails() { hoadon = ihoadons.GetHoaDon(Id), cthoadons = icthoadons.getCTHoaS(Id) }; idhoadon = hoadonDetails.hoadon.Id; return(View(hoadonDetails)); } }