public ActionResult DeleteConfirmed(int id) { functional_title functional_title = db.functional_title.Find(id); db.functional_title.Remove(functional_title); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "functionaltitleid,functional_title_id,functional_title_description_english,functional_title_abreviation_english,functional_title_description_french,functional_title_abreviation_french,functional_title_status,functional_title_created_by,functional_title_created_datetime,functional_title_last_modified_by,functional_title_last_modified_datetime,functional_title_deleted_by,functional_title_deleted_datetime")] functional_title functional_title) { if (ModelState.IsValid) { db.Entry(functional_title).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(functional_title)); }
// GET: /title/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } functional_title functional_title = db.functional_title.Find(id); if (functional_title == null) { return(HttpNotFound()); } return(View(functional_title)); }