Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "id,nom")] Responsable responsable)
 {
     if (ModelState.IsValid)
     {
         db.Entry(responsable).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(responsable));
 }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "id,nom,id_responsable")] Projet projet)
 {
     if (ModelState.IsValid)
     {
         db.Entry(projet).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.id_responsable = new SelectList(db.Responsable, "id", "nom", projet.id_responsable);
     return(View(projet));
 }
Ejemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "id,nom,type,description,id_projet")] Exigence exigence)
 {
     if (ModelState.IsValid)
     {
         db.Entry(exigence).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.id_projet = new SelectList(db.Projet, "id", "nom", exigence.id_projet);
     return(View(exigence));
 }
Ejemplo n.º 4
0
 public ActionResult Edit([Bind(Include = "id,id_projet,id_responsable,date_prevue,date_livraison")] Jalon jalon)
 {
     if (ModelState.IsValid)
     {
         db.Entry(jalon).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.id_projet      = new SelectList(db.Projet, "id", "nom", jalon.id_projet);
     ViewBag.id_responsable = new SelectList(db.Responsable, "id", "nom", jalon.id_responsable);
     return(View(jalon));
 }
Ejemplo n.º 5
0
 public ActionResult Edit([Bind(Include = "id,nom,description,id_responsable,date_debut,id_jalon,date_fin,date__debut_prevue")] Tache tache)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tache).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.id_jalon       = new SelectList(db.Jalon, "id", "id", tache.id_jalon);
     ViewBag.id_responsable = new SelectList(db.Responsable, "id", "nom", tache.id_responsable);
     return(View(tache));
 }