public ActionResult DeleteEtablissement(ClasseModels model) { using (ClasseRepository repository = new ClasseRepository()) { repository.DeleteById(model.id); repository.Save(); } return(View("Index")); }