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