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