public IActionResult Delete(int id) { EtudiantContext etudiantContext = new EtudiantContext(connectionString); bool isOK = etudiantContext.Delete(id); DeleteEtudiantViewModel model = new DeleteEtudiantViewModel(); model.IsDeleted = isOK; return(View(model)); }