public ActionResult DeleteConfirmed(int id)
        {
            tbTipoPlanillaDetalleIngreso tbTipoPlanillaDetalleIngreso = db.tbTipoPlanillaDetalleIngreso.Find(id);

            db.tbTipoPlanillaDetalleIngreso.Remove(tbTipoPlanillaDetalleIngreso);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "tpdi_IdDetallePlanillaIngreso,cin_IdIngreso,cpla_IdPlanilla,tpdi_UsuarioCrea,tpdi_FechaCrea,tpdi_UsuarioModifica,tpdi_FechaModifica")] tbTipoPlanillaDetalleIngreso tbTipoPlanillaDetalleIngreso)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbTipoPlanillaDetalleIngreso).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.cin_IdIngreso   = new SelectList(db.tbCatalogoDeIngresos, "cin_IdIngreso", "cin_DescripcionIngreso", tbTipoPlanillaDetalleIngreso.cin_IdIngreso);
     ViewBag.cpla_IdPlanilla = new SelectList(db.tbCatalogoDePlanillas, "cpla_IdPlanilla", "cpla_DescripcionPlanilla", tbTipoPlanillaDetalleIngreso.cpla_IdPlanilla);
     return(View(tbTipoPlanillaDetalleIngreso));
 }
        // GET: PlanillaIngresos/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbTipoPlanillaDetalleIngreso tbTipoPlanillaDetalleIngreso = db.tbTipoPlanillaDetalleIngreso.Find(id);

            if (tbTipoPlanillaDetalleIngreso == null)
            {
                return(HttpNotFound());
            }
            return(View(tbTipoPlanillaDetalleIngreso));
        }
        // GET: PlanillaIngresos/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbTipoPlanillaDetalleIngreso tbTipoPlanillaDetalleIngreso = db.tbTipoPlanillaDetalleIngreso.Find(id);

            if (tbTipoPlanillaDetalleIngreso == null)
            {
                return(HttpNotFound());
            }
            ViewBag.cin_IdIngreso   = new SelectList(db.tbCatalogoDeIngresos, "cin_IdIngreso", "cin_DescripcionIngreso", tbTipoPlanillaDetalleIngreso.cin_IdIngreso);
            ViewBag.cpla_IdPlanilla = new SelectList(db.tbCatalogoDePlanillas, "cpla_IdPlanilla", "cpla_DescripcionPlanilla", tbTipoPlanillaDetalleIngreso.cpla_IdPlanilla);
            return(View(tbTipoPlanillaDetalleIngreso));
        }