public ActionResult DeleteConfirmed(int id) { EIntraOral eIntraOral = db.EIntraOral.Find(id); db.EIntraOral.Remove(eIntraOral); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Identificador,Labios,PaladarDuro,PaladarBlando,Farinje,PisoBoca,GlandulasSalivales,TamanioFormaDiente,ProcesoAlveolares,EstadoGeneral")] EIntraOral eIntraOral) { if (ModelState.IsValid) { db.Entry(eIntraOral).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(eIntraOral)); }
// GET: EIntraOrals/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } EIntraOral eIntraOral = db.EIntraOral.Find(id); if (eIntraOral == null) { return(HttpNotFound()); } return(View(eIntraOral)); }