| 1234567891011121314151617181920212223 |
- 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<ActionEduActeur>
- {
- public SelectList Sel_Role;
- public ActionEduActeurViewModel(ActionEduActeur model, Entities dbContext, ModeAcces acces = ModeAcces.Lecture, Dictionary<string, object> 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; } }
- }
- }
|