Esempio n. 1
0
        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>()));
        }
Esempio n. 2
0
 // GET: DoanController
 public ActionResult Index()
 {
     return(View(_doanService.GetAll()));
 }