public ActionResult TongHopTaiSan()
 {
     ViewBag.NhomTS = new SelectList(db.tblGroupAssets, "GroupAssetId", "Name");
     tblTaiSan _model = new tblTaiSan();    
     _model.ListGroupAssets = new SelectList(db.tblGroupAssets, "GroupAssetId", "Name");
     return View(_model);
     
 }
 public ActionResult TongHopTaiSan(string id)
 {
     if (id == null)
     {
         return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
     }
     tblTaiSan _model = new tblTaiSan();
     ViewData["ID"] = id;
     var tblTaiSans = db.tblTaiSans.Where(t => t.MaLoai == id).ToList();
      _model.MaLoai = id;
      _model.GroupAssetId = db.tblLoaiTaiSans.Where(t => t.MaLoai == id).FirstOrDefault().GroupAssetId;          
     _model.ListGroupAssets = new SelectList(db.tblGroupAssets, "GroupAssetId", "Name", _model.GroupAssetId);          
     _model.ListAssets_Grid = tblTaiSans.ToList();
     return View(_model);
   }
 //Maintenance
 public ActionResult Maintenance()
 {
     ViewBag.NhomTS = new SelectList(db.tblGroupAssets, "GroupAssetId", "Name");
     tblTaiSan _model = new tblTaiSan();
     _model.ListGroupAssets = new SelectList(db.tblGroupAssets, "GroupAssetId", "Name");
     ViewBag.NhomTS = new SelectList(db.tblGroupAssets, "GroupAssetId", "Name");
     ViewBag.MaDonVi = new SelectList(db.tblDonVis, "MaDonVi", "TenDonVi");
     ViewBag.ListDuAn = new SelectList(db.tblDuAns, "Id", "Name");
     ViewBag.ListStatus = new SelectList(db.tblTinhTrangs, "StatusId", "Name");
     return View(_model);
 }