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