public ActionResult DeleteConfirmed(string id) { VISTA_PAGOS vISTA_PAGOS = db.VISTA_PAGOS.Find(id); db.VISTA_PAGOS.Remove(vISTA_PAGOS); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Clave,NumeroDeCuenta,Nombre,ApellidoPaterno,ApellidoMaterno,BaseGravable,AreaTerreno,NombreCalle,NombreDeVialidad,Colonia,NombreTipoColonia,ClaveCatastral,NumeroExterior,NumeroInterior,Lote,Manzana,Zona,Parcela,IdColoniaDePredio,IdManzana,Cantidad,FechaDePago,AÑO")] VISTA_PAGOS vISTA_PAGOS) { if (ModelState.IsValid) { db.Entry(vISTA_PAGOS).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vISTA_PAGOS)); }
// GET: VISTA_PAGOS/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } VISTA_PAGOS vISTA_PAGOS = db.VISTA_PAGOS.Find(id); if (vISTA_PAGOS == null) { return(HttpNotFound()); } return(View(vISTA_PAGOS)); }