public ActionResult TaiSanTheoKho(string id) { var kholuutru = db.tblKhoLuuTrus.Single(a => a.MaKho == id); var Kho = kholuutru.tblKhoTaiSans.Where(t => t.MaKho == id).ToList(); var taisan = db.tblTaiSans.ToList(); var lst_Kho = db.tblKhoLuuTrus.ToList(); var model = new ThongKeMODEL() { lst_Khos = lst_Kho, tblKho = Kho, tblTaiSan = taisan, kholuutrus = kholuutru, }; return View(model); }
public ActionResult TaiSanTheoKho() { var lst_Kho = db.tblKhoLuuTrus.ToList(); var model = new ThongKeMODEL() { lst_Khos = lst_Kho, }; return View(model); }