public async Task <ActionResult> DeleteConfirmed(int id) { Institution_Faculty_Qualification_Major institution_faculty_qualification_major = await db.Institution_Faculty_Qualification_Majors.FindAsync(id); db.Institution_Faculty_Qualification_Majors.Remove(institution_faculty_qualification_major); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "IFQMID,IFQID,MajorID")] Institution_Faculty_Qualification_Major institution_faculty_qualification_major) { if (ModelState.IsValid) { db.Entry(institution_faculty_qualification_major).State = System.Data.Entity.EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.IFQID = new SelectList(db.Institution_Faculty_Qualifications, "IFQID", "IFQID", institution_faculty_qualification_major.IFQID); ViewBag.MajorID = new SelectList(db.Majors, "MajorID", "Name", institution_faculty_qualification_major.MajorID); return(View(institution_faculty_qualification_major)); }
// GET: /LinkMajor/Details/5 public async Task <ActionResult> Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Institution_Faculty_Qualification_Major institution_faculty_qualification_major = await db.Institution_Faculty_Qualification_Majors.FindAsync(id); if (institution_faculty_qualification_major == null) { return(HttpNotFound()); } return(View(institution_faculty_qualification_major)); }
// GET: /LinkMajor/Edit/5 public async Task <ActionResult> Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Institution_Faculty_Qualification_Major institution_faculty_qualification_major = await db.Institution_Faculty_Qualification_Majors.FindAsync(id); if (institution_faculty_qualification_major == null) { return(HttpNotFound()); } ViewBag.IFQID = new SelectList(db.Institution_Faculty_Qualifications, "IFQID", "IFQID", institution_faculty_qualification_major.IFQID); ViewBag.MajorID = new SelectList(db.Majors, "MajorID", "Name", institution_faculty_qualification_major.MajorID); return(View(institution_faculty_qualification_major)); }