public async Task <IActionResult> DeleteConfirmed(int id) { var educationEntity = await _educationRepository.GetAsync(m => m.Id == id); await _educationRepository.DeleteAsync(educationEntity); return(RedirectToAction(nameof(Index))); }