コード例 #1
0
        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"));
        }
コード例 #2
0
 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));
     }
 }
コード例 #3
0
 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));
     }
 }