public ActionResult DeleteConfirmed(int id) { HoSoXetTuyen hoSoXetTuyen = db.HoSoXetTuyens.Find(id); db.HoSoXetTuyens.Remove(hoSoXetTuyen); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "MaHoSo,MaTruongTHPT,CMDN,NgaySinh,HoTen,GioiTinh,DanToc,TinhTrangTrungTuyen,DXT_ID")] HoSoXetTuyen hoSoXetTuyen) { if (ModelState.IsValid) { db.Entry(hoSoXetTuyen).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.DXT_ID = new SelectList(db.DiemXetTuyens, "DXT_ID", "DXT_ID", hoSoXetTuyen.DXT_ID); ViewBag.MaTruongTHPT = new SelectList(db.TruongTHPTs, "MaTruongTHPT", "TenTruong", hoSoXetTuyen.MaTruongTHPT); return(View(hoSoXetTuyen)); }
// GET: Admin/HoSoXetTuyens/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } HoSoXetTuyen hoSoXetTuyen = db.HoSoXetTuyens.Find(id); if (hoSoXetTuyen == null) { return(HttpNotFound()); } return(View(hoSoXetTuyen)); }
// GET: Admin/HoSoXetTuyens/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } HoSoXetTuyen hoSoXetTuyen = db.HoSoXetTuyens.Find(id); if (hoSoXetTuyen == null) { return(HttpNotFound()); } ViewBag.DXT_ID = new SelectList(db.DiemXetTuyens, "DXT_ID", "DXT_ID", hoSoXetTuyen.DXT_ID); ViewBag.MaTruongTHPT = new SelectList(db.TruongTHPTs, "MaTruongTHPT", "TenTruong", hoSoXetTuyen.MaTruongTHPT); return(View(hoSoXetTuyen)); }