public ActionResult DeleteConfirmed(string id) { COSTO_INDIRECTO cOSTO_INDIRECTO = db.COSTO_INDIRECTO.Find(id); db.COSTO_INDIRECTO.Remove(cOSTO_INDIRECTO); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID_COSTO,ID_PLANILLA,COSTO_DE_MANO,OTROS_COSTOS")] COSTO_INDIRECTO cOSTO_INDIRECTO) { if (ModelState.IsValid) { db.Entry(cOSTO_INDIRECTO).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ID_PLANILLA = new SelectList(db.PLANILLA, "ID_PLANILLA", "DUI", cOSTO_INDIRECTO.ID_PLANILLA); return(View(cOSTO_INDIRECTO)); }
// GET: COSTO_INDIRECTO/Details/5 public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } COSTO_INDIRECTO cOSTO_INDIRECTO = db.COSTO_INDIRECTO.Find(id); if (cOSTO_INDIRECTO == null) { return(HttpNotFound()); } return(View(cOSTO_INDIRECTO)); }
// GET: COSTO_INDIRECTO/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } COSTO_INDIRECTO cOSTO_INDIRECTO = db.COSTO_INDIRECTO.Find(id); if (cOSTO_INDIRECTO == null) { return(HttpNotFound()); } ViewBag.ID_PLANILLA = new SelectList(db.PLANILLA, "ID_PLANILLA", "DUI", cOSTO_INDIRECTO.ID_PLANILLA); return(View(cOSTO_INDIRECTO)); }