public ActionResult DeleteConfirmed(int id)
        {
            SIS_HistorialDetallesDeTerreno sIS_HistorialDetallesDeTerreno = db.SIS_HistorialDetallesDeTerreno.Find(id);

            db.SIS_HistorialDetallesDeTerreno.Remove(sIS_HistorialDetallesDeTerreno);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Clave,NumeroDeCuenta,Region,Manzana,Predio,Condominio,Año,AreaConstruccion,UsoDeSuelo,IdTipoDeConstruccion,Municipio,Edificio,ClaveOrigen,NumeroDeCuentaOrigen")] SIS_HistorialDetallesDeTerreno sIS_HistorialDetallesDeTerreno)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sIS_HistorialDetallesDeTerreno).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sIS_HistorialDetallesDeTerreno));
 }
        // GET: SIS_HistorialDetallesDeTerreno/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SIS_HistorialDetallesDeTerreno sIS_HistorialDetallesDeTerreno = db.SIS_HistorialDetallesDeTerreno.Find(id);

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