Beispiel #1
0
        public ActionResult Creer()
        {
            var deploiement = new DeploiementModel();

            ViewBag.ListeComposants     = ComposantBL.GetListComposantBase().Select(x => x.ToSelectListItem());
            ViewBag.ListeEnvironnements = EnvironnementBL.GetDefaultEnvironnements().Select(x => x.ToSelectListItem());;

            return(View("Creer", deploiement));
        }
Beispiel #2
0
        public ActionResult Creer()
        {
            ViewBag.ListeTypes        = TypeBL.GetAllTypes().Select(x => x.ToSelectListItem());
            ViewBag.ListeClients      = ClientBL.GetAllClients().Select(x => x.ToSelectListItem());
            ViewBag.ListeResponsables = ResponsableBL.GetAllResponsables().Select(x => x.ToSelectListItem());
            ViewBag.ListeTechnologies = TechnologieBL.GetAllTechnologies().Select(x => x.ToSelectListItem());

            //Creating the default environnements
            var composant = new ComposantModel();

            composant.Environnements = EnvironnementBL.GetDefaultEnvironnements().Select(x => x.ToEnvironnementModel()).ToList();

            return(View("Creer", composant));
        }
Beispiel #3
0
        public ActionResult Modifier(int id)
        {
            var deploiement = DeploiementBL.GetDeploiement(id);

            ViewBag.DateDeploiement     = deploiement.getStandardAppDate();
            ViewBag.ListeComposants     = ComposantBL.GetList().Select(x => x.ToSelectListItem());
            ViewBag.ListeEnvrionnements = EnvironnementBL.GetDefaultEnvironnements().Select(x => x.ToSelectListItem());;

            if (deploiement == null)
            {
                return(View("Error"));
            }
            else
            {
                return(View("Modifier", deploiement));
            }
        }