public async Task <ActionResult> DeleteConfirmed(decimal id) { TBL_EQUIVALENCIAS tBL_EQUIVALENCIAS = await db.TBL_EQUIVALENCIAS.FindAsync(id); db.TBL_EQUIVALENCIAS.Remove(tBL_EQUIVALENCIAS); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "ID_EQUIVALENCIAS,CODIGO_CONTABLE,ID_CONCEPTO,TOTAL")] TBL_EQUIVALENCIAS tBL_EQUIVALENCIAS) { if (ModelState.IsValid) { db.Entry(tBL_EQUIVALENCIAS).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } ViewBag.ID_CONCEPTO = new SelectList(db.TBL_CONCEPTOS, "ID_CONCEPTO", "CODIGO_CONCEPTO", tBL_EQUIVALENCIAS.ID_CONCEPTO); return(View(tBL_EQUIVALENCIAS)); }
// GET: TBL_EQUIVALENCIAS1/Details/5 public async Task <ActionResult> Details(decimal id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TBL_EQUIVALENCIAS tBL_EQUIVALENCIAS = await db.TBL_EQUIVALENCIAS.FindAsync(id); if (tBL_EQUIVALENCIAS == null) { return(HttpNotFound()); } return(View(tBL_EQUIVALENCIAS)); }
// GET: TBL_EQUIVALENCIAS1/Edit/5 public async Task <ActionResult> Edit(decimal id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TBL_EQUIVALENCIAS tBL_EQUIVALENCIAS = await db.TBL_EQUIVALENCIAS.FindAsync(id); if (tBL_EQUIVALENCIAS == null) { return(HttpNotFound()); } ViewBag.ID_CONCEPTO = new SelectList(db.TBL_CONCEPTOS, "ID_CONCEPTO", "CODIGO_CONCEPTO", tBL_EQUIVALENCIAS.ID_CONCEPTO); return(View(tBL_EQUIVALENCIAS)); }