public IActionResult Index() { EtudiantContext requetesEtudiants = new EtudiantContext(connectionString); List <Etudiant> Etudiants = requetesEtudiants.GetAll(); AcceuilViewModel model = new AcceuilViewModel(); model.Etudiants = Etudiants; return(View(model)); }
public IActionResult Index() { EtudiantContext etudiantContext = new EtudiantContext(connectionString); List <Etudiant> etudiants = etudiantContext.GetAll(); EtudiantsViewModel model = new EtudiantsViewModel(); model.Etudiants = etudiants; return(View(model)); }