public static Dictionary <string, string> GetPromotionList() { Dictionary <string, string> dictionary = new Dictionary <string, string>(); List <PROMOTION> listePromo = ElementListService.GetPromotion(); dictionary.Add("0", ""); foreach (PROMOTION promo in listePromo) { dictionary.Add((string)promo.nom_specialite, promo.nom_specialite); } return(dictionary); }
public static Dictionary <string, string> GetSalleList() { Dictionary <string, string> dictionary = new Dictionary <string, string>(); List <SALLE> listeSalle = ElementListService.GetSalle(); dictionary.Add("0", ""); foreach (SALLE salle in listeSalle) { dictionary.Add((string)salle.nom_salle, salle.nom_salle); } return(dictionary); }
public static Dictionary <string, string> GetProfList() { Dictionary <string, string> dictionary = new Dictionary <string, string>(); List <PROFESSEUR> listeProf = ElementListService.GetfProfesseur(); dictionary.Add("0", ""); foreach (PROFESSEUR prof in listeProf) { dictionary.Add((string)prof.NOM, prof.NOM); } return(dictionary); }
public static Dictionary <string, string> GetMatiereList() { Dictionary <string, string> dictionary = new Dictionary <string, string>(); List <MATIERE> listeMatiere = ElementListService.GetMatiere(); dictionary.Add("0", ""); foreach (MATIERE matiere in listeMatiere) { dictionary.Add((string)matiere.LIBELLE, matiere.LIBELLE); } return(dictionary); }