public ActionResult DeleteConfirmed(int id)
        {
            SALIDAEMPLEADOS sALIDAEMPLEADOS = db.SALIDAEMPLEADOS.Find(id);

            db.SALIDAEMPLEADOS.Remove(sALIDAEMPLEADOS);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,EMPLEADO,MOTIVO,TIPO_SALIDA,FECHA_SALIDA")] SALIDAEMPLEADOS sALIDAEMPLEADOS)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sALIDAEMPLEADOS).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.EMPLEADO = new SelectList(db.EMPLEADOS, "ID", "USERNAME", sALIDAEMPLEADOS.EMPLEADO);
     return(View(sALIDAEMPLEADOS));
 }
        // GET: SALIDAEMPLEADOS/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SALIDAEMPLEADOS sALIDAEMPLEADOS = db.SALIDAEMPLEADOS.Find(id);

            if (sALIDAEMPLEADOS == null)
            {
                return(HttpNotFound());
            }
            return(View(sALIDAEMPLEADOS));
        }
        // GET: SALIDAEMPLEADOS/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SALIDAEMPLEADOS sALIDAEMPLEADOS = db.SALIDAEMPLEADOS.Find(id);

            if (sALIDAEMPLEADOS == null)
            {
                return(HttpNotFound());
            }
            ViewBag.EMPLEADO = new SelectList(db.EMPLEADOS, "ID", "USERNAME", sALIDAEMPLEADOS.EMPLEADO);
            return(View(sALIDAEMPLEADOS));
        }