public ActionResult DeleteConfirmed(int id)
        {
            Reconstruccion reconstruccion = db.Reconstrucciones.Find(id);

            db.Reconstrucciones.Remove(reconstruccion);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "LintId,LstrNombre")] Reconstruccion reconstruccion)
 {
     if (ModelState.IsValid)
     {
         db.Entry(reconstruccion).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(reconstruccion));
 }
        // GET: Reconstrucciones/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Reconstruccion reconstruccion = db.Reconstrucciones.Find(id);

            if (reconstruccion == null)
            {
                return(HttpNotFound());
            }
            return(View(reconstruccion));
        }
        public ActionResult Create([Bind(Include = "LintId,LstrNombre")] Reconstruccion reconstruccion)
        {
            if (ModelState.IsValid)
            {
                Caso caso = db.Casos.Find(idCaso);

                if (caso != null)
                {
                    caso.LcolReconstrucciones.Add(reconstruccion);
                    reconstruccion.caso = caso;
                    db.Reconstrucciones.Add(reconstruccion);
                    db.SaveChanges();

                    return(RedirectToAction("../Casos/Details/" + caso.LintId));
                }
            }

            return(View(reconstruccion));
        }