예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CAJAS_PagosPendientesCatastro cAJAS_PagosPendientesCatastro = db.CAJAS_PagosPendientesCatastro.Find(id);

            db.CAJAS_PagosPendientesCatastro.Remove(cAJAS_PagosPendientesCatastro);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Edit([Bind(Include = "Id,IdFolio,IdTipoOperacion,ClaveCatastral,Clave,NumeroDeCuenta")] CAJAS_PagosPendientesCatastro cAJAS_PagosPendientesCatastro)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cAJAS_PagosPendientesCatastro).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cAJAS_PagosPendientesCatastro));
 }
예제 #3
0
        public ActionResult Create([Bind(Include = "Id,IdFolio,IdTipoOperacion,ClaveCatastral,Clave,NumeroDeCuenta")] CAJAS_PagosPendientesCatastro cAJAS_PagosPendientesCatastro)
        {
            if (ModelState.IsValid)
            {
                db.CAJAS_PagosPendientesCatastro.Add(cAJAS_PagosPendientesCatastro);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cAJAS_PagosPendientesCatastro));
        }
예제 #4
0
        // GET: CAJAS_PagosPendientesCatastro/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CAJAS_PagosPendientesCatastro cAJAS_PagosPendientesCatastro = db.CAJAS_PagosPendientesCatastro.Find(id);

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