コード例 #1
0
        // 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));
        }
コード例 #2
0
        // 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));
        }