ImportCollegeViewModel.cs 861 B

123456789101112131415161718192021222324252627282930
  1. using CD67.FicheCollege.Entity;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace CD67.FicheCollege.MVC.Models
  5. {
  6. public class ImportCollegeViewModel
  7. {
  8. public int Annee_Id;
  9. public string Annee_Lib = "";
  10. public List<int> colleges_ids = new List<int>();
  11. public List<string> colleges_libs = new List<string>();
  12. public List<string> colleges_rnes = new List<string>();
  13. public List<bool> selection = new List<bool>();
  14. public void set_liste(List<College> colleges)
  15. {
  16. foreach (College college in colleges)
  17. {
  18. colleges_ids.Add(college.Id);
  19. colleges_libs.Add(college.Libelle);
  20. colleges_rnes.Add(college.CodeRne);
  21. selection.Add(false);
  22. }
  23. }
  24. }
  25. }