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

            db.DD_Desembolso.Remove(dD_Desembolso);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,CODIGO,BENEFICIARIOID,CODIGO_BENEFICIARIO,MONTO,FECHA,CONCEPTO,AREA,METODO_PAGO")] DD_Desembolso dD_Desembolso)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dD_Desembolso).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.BENEFICIARIOID = new SelectList(db.DD_Beneficiarios, "ID", "CODIGO", dD_Desembolso.BENEFICIARIOID);
     return(View(dD_Desembolso));
 }
        // GET: Desembolso/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            DD_Desembolso dD_Desembolso = db.DD_Desembolso.Find(id);

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

            if (dD_Desembolso == null)
            {
                return(HttpNotFound());
            }
            ViewBag.BENEFICIARIOID = new SelectList(db.DD_Beneficiarios, "ID", "CODIGO", dD_Desembolso.BENEFICIARIOID);
            return(View(dD_Desembolso));
        }