public ActionResult DeleteConfirmed(int id) { IngresosGastosFASS ingresosGastosFASS = db.IngesosGastos.Find(id); db.IngesosGastos.Remove(ingresosGastosFASS); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Descripcion,EsIngresos,valor")] IngresosGastosFASS ingresosGastosFASS) { if (ModelState.IsValid) { db.Entry(ingresosGastosFASS).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(ingresosGastosFASS)); }
public ActionResult Create([Bind(Include = "Id,Descripcion,EsIngresos,valor")] IngresosGastosFASS ingresosGastosFASS) { if (ModelState.IsValid) { db.IngesosGastos.Add(ingresosGastosFASS); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(ingresosGastosFASS)); }
// GET: IngresosGastos/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } IngresosGastosFASS ingresosGastosFASS = db.IngesosGastos.Find(id); if (ingresosGastosFASS == null) { return(HttpNotFound()); } return(View(ingresosGastosFASS)); }