public async Task <ActionResult> DeleteConfirmed(int id) { DETALLEPLANILLABEN dETALLEPLANILLABEN = await db.DETALLEPLANILLABEN.FindAsync(id); db.DETALLEPLANILLABEN.Remove(dETALLEPLANILLABEN); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "ID_PLANILLA,ID_FUNCIONARIO,ID_BENEFICIO,MONTO")] DETALLEPLANILLABEN dETALLEPLANILLABEN) { if (ModelState.IsValid) { db.Entry(dETALLEPLANILLABEN).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.ID_PLANILLA = new SelectList(db.DETALLEPLANILLABEN, "ID_PLANILLA", "ID_BENEFICIO", dETALLEPLANILLABEN.ID_PLANILLA); ViewBag.ID_PLANILLA = new SelectList(db.DETALLEPLANILLABEN, "ID_PLANILLA", "ID_BENEFICIO", dETALLEPLANILLABEN.ID_PLANILLA); return(View(dETALLEPLANILLABEN)); }
// GET: DETALLEPLANILLABENs/Details/5 public async Task <ActionResult> Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DETALLEPLANILLABEN dETALLEPLANILLABEN = await db.DETALLEPLANILLABEN.FindAsync(id); if (dETALLEPLANILLABEN == null) { return(HttpNotFound()); } return(View(dETALLEPLANILLABEN)); }
// GET: DETALLEPLANILLABENs/Edit/5 public async Task <ActionResult> Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DETALLEPLANILLABEN dETALLEPLANILLABEN = await db.DETALLEPLANILLABEN.FindAsync(id); if (dETALLEPLANILLABEN == null) { return(HttpNotFound()); } ViewBag.ID_PLANILLA = new SelectList(db.DETALLEPLANILLABEN, "ID_PLANILLA", "ID_BENEFICIO", dETALLEPLANILLABEN.ID_PLANILLA); ViewBag.ID_PLANILLA = new SelectList(db.DETALLEPLANILLABEN, "ID_PLANILLA", "ID_BENEFICIO", dETALLEPLANILLABEN.ID_PLANILLA); return(View(dETALLEPLANILLABEN)); }