using CD67.FicheCollege.Entity; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace CD67.FicheCollege.MVC.Models { public class ImportCollegeViewModel { public int Annee_Id; public string Annee_Lib = ""; public List colleges_ids = new List(); public List colleges_libs = new List(); public List colleges_rnes = new List(); public List selection = new List(); public void set_liste(List colleges) { foreach (College college in colleges) { colleges_ids.Add(college.Id); colleges_libs.Add(college.Libelle); colleges_rnes.Add(college.CodeRne); selection.Add(false); } } } }