Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            Création_de_Projet création_de_Projet = db.Création_de_Projet.Find(id);

            db.Création_de_Projet.Remove(création_de_Projet);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "id,xidProjet,xidPromoteur,Prestataires,Questionnaire,uploadfichiers")] Création_de_Projet création_de_Projet)
 {
     if (ModelState.IsValid)
     {
         db.Entry(création_de_Projet).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Prestataires = new SelectList(db.Liste_de_Prestataires, "id", "Prestataires", création_de_Projet.Prestataires);
     ViewBag.xidProjet    = new SelectList(db.Projet, "idProjet", "Promoteur", création_de_Projet.xidProjet);
     ViewBag.xidPromoteur = new SelectList(db.Promoteur, "idPromoteur", "idPromoteur", création_de_Projet.xidPromoteur);
     return(View(création_de_Projet));
 }
Esempio n. 3
0
        // GET: Création_de_Projet/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Création_de_Projet création_de_Projet = db.Création_de_Projet.Find(id);

            if (création_de_Projet == null)
            {
                return(HttpNotFound());
            }
            return(View(création_de_Projet));
        }
Esempio n. 4
0
        // GET: Création_de_Projet/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Création_de_Projet création_de_Projet = db.Création_de_Projet.Find(id);

            if (création_de_Projet == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Prestataires = new SelectList(db.Liste_de_Prestataires, "id", "Prestataires", création_de_Projet.Prestataires);
            ViewBag.xidProjet    = new SelectList(db.Projet, "idProjet", "Promoteur", création_de_Projet.xidProjet);
            ViewBag.xidPromoteur = new SelectList(db.Promoteur, "idPromoteur", "idPromoteur", création_de_Projet.xidPromoteur);
            return(View(création_de_Projet));
        }