public ActionResult DeleteConfirmed(int id)
        {
            DiemXetTuyen diemXetTuyen = db.DiemXetTuyens.Find(id);

            db.DiemXetTuyens.Remove(diemXetTuyen);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "DXT_ID,DiemToan,DiemVan,DiemLy,DiemHoa,DiemSinh,DiemDia,DiemGDCD,DiemNN,HinhThucXetTuyen")] DiemXetTuyen diemXetTuyen)
 {
     if (ModelState.IsValid)
     {
         db.Entry(diemXetTuyen).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(diemXetTuyen));
 }
        public ActionResult Create([Bind(Include = "DXT_ID,DiemToan,DiemVan,DiemLy,DiemHoa,DiemSinh,DiemDia,DiemGDCD,DiemNN,HinhThucXetTuyen")] DiemXetTuyen diemXetTuyen)
        {
            if (ModelState.IsValid)
            {
                db.DiemXetTuyens.Add(diemXetTuyen);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(diemXetTuyen));
        }
        // GET: Admin/DiemXetTuyens/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            DiemXetTuyen diemXetTuyen = db.DiemXetTuyens.Find(id);

            if (diemXetTuyen == null)
            {
                return(HttpNotFound());
            }
            return(View(diemXetTuyen));
        }