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

            db.PENCAIRANDANA.Remove(pENCAIRANDANA);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID_PENCAIRAN_DANA,ID_PROYEK,ID_PENGGUNA,NAMA_KEGIATAN,JUMLAH,NAMA_PENCAIR,NO_REKENING,STATUS,CREATE_BY,CREATE_DATE,UPDATE_BY,UPDATE_DATE,KETERANGAN")] PENCAIRANDANA pENCAIRANDANA)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pENCAIRANDANA).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ID_PENCAIRAN_DANA = new SelectList(db.PENGGUNA, "ID_PENGGUNA", "NAMA", pENCAIRANDANA.ID_PENCAIRAN_DANA);
     ViewBag.ID_PROYEK         = new SelectList(db.PROJEK, "ID_PROYEK", "NAMA_PROYEK", pENCAIRANDANA.ID_PROYEK);
     return(View(pENCAIRANDANA));
 }
        // GET: historyPencairanDana/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PENCAIRANDANA pENCAIRANDANA = db.PENCAIRANDANA.Find(id);

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

            if (pENCAIRANDANA == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ID_PENCAIRAN_DANA = new SelectList(db.PENGGUNA, "ID_PENGGUNA", "NAMA", pENCAIRANDANA.ID_PENCAIRAN_DANA);
            ViewBag.ID_PROYEK         = new SelectList(db.PROJEK, "ID_PROYEK", "NAMA_PROYEK", pENCAIRANDANA.ID_PROYEK);
            return(View(pENCAIRANDANA));
        }