public async Task <IActionResult> DeleteConfirmed(int id) { var sport = await sportRepository.GetByIdAsync(id); await sportRepository.DeleteAsync(sport); await auditLogger.log(GetUserId(), $"Deleted Sport {id}"); return(RedirectToAction(nameof(Index))); }