public ActionResult Create([Bind(Include = "TTDT_MA,HINHTHUCs_HT_MA,CHUYENNGANH_CN_MA,VANBANG_VB_MA")] THONGTINDAOTAO tHONGTINDAOTAO)
        {
            if (ModelState.IsValid)
            {
                db.THONGTINDAOTAOs.Add(tHONGTINDAOTAO);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            ViewBag.CHUYENNGANH_CN_MA = new SelectList(db.CHUYENNGANHs, "CN_MA", "CN_TEN", tHONGTINDAOTAO.CHUYENNGANH_CN_MA);
            ViewBag.HINHTHUCs_HT_MA   = new SelectList(db.HINHTHUCs, "HT_MA", "HT_TEN", tHONGTINDAOTAO.HINHTHUCs_HT_MA);
            ViewBag.VANBANG_VB_MA     = new SelectList(db.VANBANGs, "VB_MA", "VB_TEN", tHONGTINDAOTAO.VANBANG_VB_MA);
            return(View(tHONGTINDAOTAO));
        }
        // GET: THONGTINDAOTAOs/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            THONGTINDAOTAO tHONGTINDAOTAO = db.THONGTINDAOTAOs.Find(id);

            if (tHONGTINDAOTAO == null)
            {
                return(HttpNotFound());
            }
            return(View(tHONGTINDAOTAO));
        }
        // GET: THONGTINDAOTAOs/Edit/5
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            THONGTINDAOTAO tHONGTINDAOTAO = db.THONGTINDAOTAOs.Find(id);

            if (tHONGTINDAOTAO == null)
            {
                return(HttpNotFound());
            }
            ViewBag.CHUYENNGANH_CN_MA = new SelectList(db.CHUYENNGANHs, "CN_MA", "CN_TEN", tHONGTINDAOTAO.CHUYENNGANH_CN_MA);
            ViewBag.HINHTHUCs_HT_MA   = new SelectList(db.HINHTHUCs, "HT_MA", "HT_TEN", tHONGTINDAOTAO.HINHTHUCs_HT_MA);
            ViewBag.VANBANG_VB_MA     = new SelectList(db.VANBANGs, "VB_MA", "VB_TEN", tHONGTINDAOTAO.VANBANG_VB_MA);
            return(View(tHONGTINDAOTAO));
        }