// GET: Anggota/Delete/5 public async Task <IActionResult> Delete(int?id) { var prestasi = await _context.PrestasiOrmawa.FindAsync(id); _context.PrestasiOrmawa.Remove(prestasi); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); }
// GET: Anggota/Delete/5 public async Task <IActionResult> Delete(int?id) { var anggota = await _context.AnggotaOrmawa.FindAsync(id); _context.AnggotaOrmawa.Remove(anggota); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Daftaranggota))); }