public ActionResult DeleteConfirmed(int id) { CAJAS_HistorialPago cAJAS_HistorialPago = db.CAJAS_HistorialPago.Find(id); db.CAJAS_HistorialPago.Remove(cAJAS_HistorialPago); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "IdPago,FolioOperacion,Cantidad,IdFormaDePago,IdUbicacionDePago,FechaDePago,FechaDeCancelacion,MotivoCancelacion,idUsuario,referencia,Clave,NumeroDeCuenta,NombreSolicitante,ApellidoPaternoSolicitante,ApellidoMaternoSolicitante,idUsuarioCobro")] CAJAS_HistorialPago cAJAS_HistorialPago) { if (ModelState.IsValid) { db.Entry(cAJAS_HistorialPago).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cAJAS_HistorialPago)); }
// GET: CAJAS_HistorialPago/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CAJAS_HistorialPago cAJAS_HistorialPago = db.CAJAS_HistorialPago.Find(id); if (cAJAS_HistorialPago == null) { return(HttpNotFound()); } return(View(cAJAS_HistorialPago)); }