ActionClasViewModel.cs 780 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using CD67.FicheCollege.Entity;
  2. using System.Collections.Generic;
  3. namespace CD67.FicheCollege.MVC.Models
  4. {
  5. public class ActionClasViewModel : BaseViewModel
  6. {
  7. public ActionClasViewModel(object model, ModeAcces acces = ModeAcces.Lecture, Dictionary<string, object> bag = null) : base(model, acces, bag)
  8. {
  9. }
  10. public ActionCLAS Obj
  11. {
  12. get
  13. {
  14. return (_Obj as ActionCLAS);
  15. }
  16. }
  17. public override int Id
  18. {
  19. get
  20. {
  21. return Obj.College_Id;
  22. }
  23. }
  24. public override string Annee_Lib
  25. {
  26. get
  27. {
  28. return Obj.College.Annee.Libelle;
  29. }
  30. }
  31. }
  32. }