Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            SIS_HistorialGeneral sIS_HistorialGeneral = db.SIS_HistorialGeneral.Find(id);

            db.SIS_HistorialGeneral.Remove(sIS_HistorialGeneral);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "id,idUsuario,fecha,hora,tablaAfectada,tipoMovimiento,descripcion,sistemaPertenece,NombreUsuario")] SIS_HistorialGeneral sIS_HistorialGeneral)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sIS_HistorialGeneral).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sIS_HistorialGeneral));
 }
Beispiel #3
0
        // GET: SIS_HistorialGeneral/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SIS_HistorialGeneral sIS_HistorialGeneral = db.SIS_HistorialGeneral.Find(id);

            if (sIS_HistorialGeneral == null)
            {
                return(HttpNotFound());
            }
            return(View(sIS_HistorialGeneral));
        }