public ActionResult DeleteConfirmed(int id) { SALIDA_EMPLEADO sALIDA_EMPLEADO = db.SALIDA_EMPLEADO.Find(id); db.SALIDA_EMPLEADO.Remove(sALIDA_EMPLEADO); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id_Salida,Id_Empleado,Tipo_Salida,Motivo,Fecha_Salida")] SALIDA_EMPLEADO sALIDA_EMPLEADO) { if (ModelState.IsValid) { db.Entry(sALIDA_EMPLEADO).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Id_Empleado = new SelectList(db.EMPLEADOS, "Id_Empleado", "Nombre", sALIDA_EMPLEADO.Id_Empleado); return(View(sALIDA_EMPLEADO)); }
// GET: SALIDA_EMPLEADO/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SALIDA_EMPLEADO sALIDA_EMPLEADO = db.SALIDA_EMPLEADO.Find(id); if (sALIDA_EMPLEADO == null) { return(HttpNotFound()); } return(View(sALIDA_EMPLEADO)); }
// GET: SALIDA_EMPLEADO/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SALIDA_EMPLEADO sALIDA_EMPLEADO = db.SALIDA_EMPLEADO.Find(id); if (sALIDA_EMPLEADO == null) { return(HttpNotFound()); } ViewBag.Id_Empleado = new SelectList(db.EMPLEADOS, "Id_Empleado", "Nombre", sALIDA_EMPLEADO.Id_Empleado); return(View(sALIDA_EMPLEADO)); }