public ActionResult AddEmploye(ViewModelAddEmploye model)
        {
            if (adminFranchise.IsNull())
            {
                return RedirectError();
            }

            if (ModelState.IsValid)
            {
                if(Bdd.AddEmploye(model.Form))
                    return RedirectToAction("AddEmploye", "Franchise");
            }

            var authorize = Bdd.AuthorizedAddEmploye(adminFranchise);
            List<Salon> salons = new List<Salon>();

            //Si l'utilisateur peut ajouter un employé (il a eu moins un salon), alors on récup la liste des salons
            if (authorize)
            {
                salons = Bdd.GetSalons(adminFranchise);
            }
            
            //model.Form.CreateListeSalons(salons);
            model.Authorize = authorize;

            return View(model);
        }
        public ActionResult AddEmploye()
        {
            if (adminFranchise.IsNull())
            {
                return RedirectError();
            }

            var authorize = Bdd.AuthorizedAddEmploye(adminFranchise);
            List<Salon> salons = new List<Salon>();

            //Si l'utilisateur peut ajouter un employé (il a eu moins un salon), alors on récup la liste des salons
            if (authorize)
            {
                salons = Bdd.GetSalons(adminFranchise);
            }
            
            //if(Bdd.LoadFicheSalon(salons).IsFalse()) 
            //    return RedirectToAction("Index", "Franchise");

            var model = new ViewModelAddEmploye
            {
                Form = new ViewModelFranchiseAddEmploye(salons),
                Authorize = authorize
            };

            return View(model);
        }