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