public async Task <IActionResult> DeleteConfirmed(int id) { _personelRepository.DeletePersonelById(id); _personelRepository.Save(); return(RedirectToAction(nameof(Index))); }