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