// GET: DoanController/Details/5 public ActionResult Details(int id) { idND = id; string strId = nguoidiRepo.getKH(id); string strIdnv = nguoidiRepo.getNV(id); Doans d = _doanService.Get(id); idTours = d.TourId; ViewBag.doan = d; ViewBag.kh = khachhangRepo.GetAll(strId); ViewBag.nv = nhanVienRepo.GetAllId(strIdnv); ViewBag.nvs = nhanVienRepo.GetAll(); ViewBag.khall = khachhangRepo.GetAlll(); ViewBag.gia = gia.Get(Convert.ToInt32(d.TourId)); ViewBag.slKh = nguoidiRepo.CountKH(strId); ViewBag.slNV = nguoidiRepo.CountNV(strIdnv); try { ViewBag.tongtien = tongTien(); } catch (System.Exception ex) { ViewBag.tongtien = 0; } ViewBag.tour = tour.Get(d.TourId); return(View()); }
// GET: DoanController/Details/5 public ActionResult Details(int id) { idND = id; string strId = nguoidiRepo.getKH(id); string strIdnv = nguoidiRepo.getNV(id); ViewBag.kh = khachhangRepo.GetAll(strId); ViewBag.nv = nhanVienRepo.GetAllId(strIdnv); ViewBag.nvs = nhanVienRepo.GetAll(); ViewBag.khall = khachhangRepo.GetAlll(); return(View()); }
public IActionResult index() { return(View(nhanVienRepo.GetAll())); }