public ActionResult Description(string nom)
        {
            var territoireIds = TempData["ids"] as IEnumerable <int>;

            if (territoireIds == null)
            {
                return(RedirectToAction("Nouvelle", "Activites")); // should be details list
            }
            DropDowns.Territoires = DropDowns
                                    .Create(TerritoireDAO.Find(territoireIds), "choisir une!");

            var vm = new ViewModel();

            vm.Entity = ActiviteDAO.FindByNameWhereTerritoire(nom, territoireIds.First());
            return(View(vm));
        }
        public ActionResult Description(ViewModel vm)
        {
            DropDowns.Territoires = DropDowns
                                    .Create(TerritoireDAO.WhereActiviteName(vm.Entity.Nom), vm.Entity.TerritoireID);

            var activite = ActiviteDAO.FindByNameWhereTerritoire(vm.Entity.Nom, vm.Entity.TerritoireID);

            DropDowns.Numbers = setDropDown(vm.Elements);

            var elements =
                new List <ActiviteElementVM>().Init(vm.Elements, (index) =>
                                                    new ActiviteElementVM()
            {
                VMID = index + 1, Entity = new ActiviteElement()
            });

            TempData[activiteElementsID] = elements;
            return(View("CreateElements", elements));
        }