public ActionResult Nouvelle() { var vm = new PrestationVM(); vm.Joins = IsJoinedDictionary.Default <Territoire>(); DropDowns.Poles = DropDowns.Default <Pole>("Choisir une!"); return(View(vm)); }
public PartialViewResult SetIntervenant(int activiteElementId, int activiteElementDetailsId) { var element = DAO.Find <ActiviteElement>(activiteElementId); var times = element.Details.AsEnumerable().Select(e => e.JourEtHeure); DropDowns.Create(times, "choisir un!"); DropDowns.Default <Intervenant>("choisir un ou saisir leur details en-dessous!"); var vm = new IntervenantVM() { ActiviteElementId = activiteElementId, ActiviteElementDetailsId = activiteElementDetailsId }; return(PartialView(vm)); }
private void setPoleDropDown(int poleId) { DropDowns.Poles = DropDowns.Default <Pole>(selected: poleId); }