public async Task <ActionResult> DeleteConfirmed(int id)
        {
            KelompokKkn kelompokKkn = await db.KelompokKkns.FindAsync(id);

            db.KelompokKkns.Remove(kelompokKkn);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "IdKel,KodeDesa,IdUniv,NamaKel,TanggalMulai,TanggalAkhir,NIMKetua")] KelompokKkn kelompokKkn)
        {
            if (ModelState.IsValid)
            {
                db.Entry(kelompokKkn).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.KodeDesa = new SelectList(db.Desas, "KodeDesa", "KodeKec", kelompokKkn.KodeDesa);
            ViewBag.IdUniv   = new SelectList(db.Universitas, "IdUniv", "NamaUniv", kelompokKkn.IdUniv);
            return(View(kelompokKkn));
        }
        // GET: Kelompok/Details/5
        public async Task <ActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            KelompokKkn kelompokKkn = await db.KelompokKkns.FindAsync(id);

            if (kelompokKkn == null)
            {
                return(HttpNotFound());
            }
            return(View(kelompokKkn));
        }
        // GET: Kelompok/Edit/5
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            KelompokKkn kelompokKkn = await db.KelompokKkns.FindAsync(id);

            if (kelompokKkn == null)
            {
                return(HttpNotFound());
            }
            ViewBag.KodeDesa = new SelectList(db.Desas, "KodeDesa", "KodeKec", kelompokKkn.KodeDesa);
            ViewBag.IdUniv   = new SelectList(db.Universitas, "IdUniv", "NamaUniv", kelompokKkn.IdUniv);
            return(View(kelompokKkn));
        }