public IActionResult Details(int? Id)
   {
       if (Id == null)
       {
           return NotFound();
       }
       else
       {
           var nhapHangDetails = new NhapHangDetails()
           {
               nhaphang = nhaphangs.GetNhapHang(Id),
               ctnhaphang = ictnhaphangs.GetCTNhaps(Id)
           };
           idnhaphang = nhapHangDetails.nhaphang.Id;
           return View(nhapHangDetails);
       }
   }
Example #2
0
 public IActionResult Details(int?Id)
 {
     if (Id == null)
     {
         return(NotFound());
     }
     else
     {
         ViewBag.Name = HttpContext.Session.GetString("Ten");
         var nhapHangDetails = new NhapHangDetails()
         {
             nhaphang   = nhaphangs.GetNhapHang(Id),
             ctnhaphang = ictnhaphangs.GetCTNhaps(Id)
         };
         idnhaphang = nhapHangDetails.nhaphang.Id;
         return(View(nhapHangDetails));
     }
 }