Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CANCELADO_SIS_Predios cANCELADO_SIS_Predios = db.CANCELADO_SIS_Predios.Find(id);

            db.CANCELADO_SIS_Predios.Remove(cANCELADO_SIS_Predios);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult Edit([Bind(Include = "Id,Clave,NumeroDeCuenta,Region,Manzana,Predio,Condominio,IdColoniaDePredio,FechaAlta,NombreCalle,NumeroExterior,NumeroInterior,CodigoPostal,ClaveCatastral,Municipio,Edificio,Ubicacion,IdTipoDeVialidad")] CANCELADO_SIS_Predios cANCELADO_SIS_Predios)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cANCELADO_SIS_Predios).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cANCELADO_SIS_Predios));
 }
Пример #3
0
        // GET: CANCELADO_SIS_Predios/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CANCELADO_SIS_Predios cANCELADO_SIS_Predios = db.CANCELADO_SIS_Predios.Find(id);

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