using CD67.FicheCollege.Entity; using CD67.FicheCollege.Factory; using CD67.FicheCollege.MVC.Internal; using System.Collections.Generic; using System.Web.Mvc; namespace CD67.FicheCollege.MVC.Models { public class ActionEduActeurViewModel : BaseViewModel { public SelectList Sel_Role; public ActionEduActeurViewModel(ActionEduActeur model, Entities dbContext, ModeAcces acces = ModeAcces.Lecture, Dictionary bag = null) : base(model, acces, bag) { ActionEduActeurRoleFactory fact = new ActionEduActeurRoleFactory(dbContext); Sel_Role = new SelectList(fact.getAll(), "Id", "Libelle", Obj.RoleId); } public override int Annee_Id { get { return Obj.ActionEdu.Annee.Id; } } public override string Annee_Lib { get { return Obj.ActionEdu.Annee.Libelle; } } } }