Пример #1
0
 public ActionResult Index()
 {
     ViewBag.etudiants   = _etudiantService.GetAll().Where(o => o.isActive == 1).Count();
     ViewBag.graduates   = _etudiantService.GetAll().Where(o => o.isActive == 0 && o.Niveau == 3).Count();
     ViewBag.professeurs = _professeurService.GetAll().Where(o => o.isActive == 1).Count();
     ViewBag.specialites = _specialiteService.GetAll().OrderBy(o => o.Designation).ToList();
     ViewBag.directeur   = _annonceService.GetAll().FirstOrDefault(o => o.Titre.Equals("directeur"));
     ViewBag.modules     = _moduleService.GetAll().Count();
     return(View());
 }
 public ActionResult Professeurs()
 {
     return(View(_professeurService.GetAll().Where(o => o.isActive == 1).OrderBy(o => o.Nom).ToList()));
 }