public ActionResult DeleteConfirmed(int id) { CAJAS_PagosPredial cAJAS_PagosPredial = db.CAJAS_PagosPredial.Find(id); db.CAJAS_PagosPredial.Remove(cAJAS_PagosPredial); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "IdPago,IdFolio,Clave,NumeroDeCuenta,NombreSolicitante,ApellidoPaternoSolicitante,ApellidoMaternoSolicitante,IdUsuario,BimestresPagados,AñoPagado,FolioOperacion")] CAJAS_PagosPredial cAJAS_PagosPredial) { if (ModelState.IsValid) { db.Entry(cAJAS_PagosPredial).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cAJAS_PagosPredial)); }
// GET: CAJAS_PagosPredial/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CAJAS_PagosPredial cAJAS_PagosPredial = db.CAJAS_PagosPredial.Find(id); if (cAJAS_PagosPredial == null) { return(HttpNotFound()); } return(View(cAJAS_PagosPredial)); }