コード例 #1
0
        public ActionResult ModifPagePublique(string nomPage)
        {
            if (nomPage != null)
            {
                nomPage = nomPage.ToLower();

                GetContenu_Result contentResult = db.GetContenu(nomPage.ToLower()).FirstOrDefault();

                if (contentResult != null)
                {
                    PublicContentModel model = new PublicContentModel();

                    model.nomPage     = contentResult.PAGE;
                    model.titre       = contentResult.TITRE;
                    model.titreTrad   = contentResult.TITRE_TRAD;
                    model.contenu     = Message.BrToNewline(contentResult.CONTENU);
                    model.contenuTrad = Message.BrToNewline(contentResult.CONTENU_TRAD);
                    model.fileName    = contentResult.URLIMAGE;

                    return(View(model));
                }
            }

            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public ActionResult NousJoindre()
        {
            GetContenu_Result contentResult = db.GetContenu("Contact").FirstOrDefault();

            return(View(contentResult));
        }
コード例 #3
0
        public ActionResult APropos()
        {
            GetContenu_Result contentResult = db.GetContenu("About").FirstOrDefault();

            return(View(contentResult));
        }
コード例 #4
0
        public ActionResult Home()
        {
            GetContenu_Result contentResult = db.GetContenu("Accueil").FirstOrDefault();

            return(View("Index", contentResult));
        }