// GET: KHAOSATs/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } KHAOSAT kHAOSAT = service.Detail(id); if (kHAOSAT == null) { return(HttpNotFound()); } return(View(kHAOSAT)); }
// GET: KHAOSATs/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } IList <KHAOSAT> kHAOSAT = service.Detail(id); ViewBag.nguoiKS = kHAOSAT[0].NHANVIEN.TenNV; if (kHAOSAT == null) { return(HttpNotFound()); } return(View(kHAOSAT)); }