public ActionResult DeleteConfirmed(int id) { SIS_HistorialAdeudo sIS_HistorialAdeudo = db.SIS_HistorialAdeudo.Find(id); db.SIS_HistorialAdeudo.Remove(sIS_HistorialAdeudo); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Adeudo,Clave,NumeroDeCuenta,Recargo,Multa,año,DescuentoGeneral,Bimestre1,Bimestre2,Bimestre3,Bimestre4,Bimestre5,Bimestre6,CondonacionGeneral,CondonacionMulta,CondonacionRecargo,FechaDeAplicacion")] SIS_HistorialAdeudo sIS_HistorialAdeudo) { if (ModelState.IsValid) { db.Entry(sIS_HistorialAdeudo).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sIS_HistorialAdeudo)); }
// GET: SIS_HistorialAdeudo/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SIS_HistorialAdeudo sIS_HistorialAdeudo = db.SIS_HistorialAdeudo.Find(id); if (sIS_HistorialAdeudo == null) { return(HttpNotFound()); } return(View(sIS_HistorialAdeudo)); }