public IActionResult Index(int?id) { ViewBag.Doans = doanRepo.GetAll(); int idDoan = id ?? 0; ViewBag.id = idDoan; idd = idDoan; ViewBag.doan = doanRepo.Get(idDoan); if (idDoan != 0) { return(View(repo.GetChiTietHoaDon(idDoan))); } return(View(new List <ChiPhis>())); }
// GET: DoanController public ActionResult Index() { return(View(_doanService.GetAll())); }