public ActionResult DeleteConfirmed(short id) { Adm_Proficiency adm_Proficiency = db.Adm_Proficiencies.Find(id); db.Adm_Proficiencies.Remove(adm_Proficiency); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Proficiency_ID,Proficiency")] Adm_Proficiency adm_Proficiency) { if (ModelState.IsValid) { db.Entry(adm_Proficiency).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(adm_Proficiency)); }
public ActionResult Create([Bind(Include = "Proficiency_ID,Proficiency")] Adm_Proficiency adm_Proficiency) { if (ModelState.IsValid) { db.Adm_Proficiencies.Add(adm_Proficiency); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(adm_Proficiency)); }
// GET: Adm_Proficiency/Delete/5 public ActionResult Delete(short?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Adm_Proficiency adm_Proficiency = db.Adm_Proficiencies.Find(id); if (adm_Proficiency == null) { return(HttpNotFound()); } return(View(adm_Proficiency)); }