Exemple #1
0
        public IActionResult Index()
        {
            VM_Admin vm = new VM_Admin();

            var allFixtures = _context.Fixtures.ToList();

            vm.Fixtures = allFixtures.OrderBy(p => p.FixtureDateTime).ToList();

            var allUsers = _context.Users.ToList();

            vm.Users = allUsers.OrderBy(p => p.Surname).ToList();

            return(View("Index", vm));
        }
        // GET: GestionPoste
        public ActionResult Index()
        {
            listPoste listePosteAssigne    = new listPoste();
            listPoste listePosteNonAssigne = new listPoste();
            CFestival festival             = new CFestival();

            festival.InfoFestival();
            VM_Admin vm = new VM_Admin();

            vm.NomFestival                   = festival.NomFestival;
            vm.DebutFestival                 = festival.DateDebutFestival;
            vm.FinFestival                   = festival.DateFinFestival;
            vm.BudgetFestival                = festival.BudgetFestival;
            ViewBag.listeDesPostes           = listePosteAssigne.GetListPosteAssigne();
            ViewBag.listeDesPostesNonAssigne = listePosteNonAssigne.GetListPosteNonAssigne();
            return(View(vm));
        }