public async Task <IActionResult> DeleteConfirmed(long id) { //var bonus = await _context.Bonuses.FindAsync(id); //_context.Bonuses.Remove(bonus); //await _context.SaveChangesAsync(); var bonus = bonusRepository.GetDeleteList(id); await bonusRepository.Delete(bonus); return(RedirectToAction(nameof(Index))); }