public ActionResult DeleteConfirmed(int id) { TableExigence tableExigence = db.TableExigence.Find(id); db.TableExigence.Remove(tableExigence); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ExigenceId,ExigenceCommentaire,ExigenceFonctionnel,ExigenceFonctionTache")] TableExigence tableExigence) { if (ModelState.IsValid) { db.Entry(tableExigence).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tableExigence)); }
public ActionResult Create([Bind(Include = "ExigenceId,ExigenceCommentaire,ExigenceFonctionnel,ExigenceFonctionTache")] TableExigence tableExigence) { if (ModelState.IsValid) { db.TableExigence.Add(tableExigence); db.SaveChanges(); return(RedirectToAction("Index", new { id = tableExigence.IdProjet })); } ViewBag.IdProjet = new SelectList(db.TableExigence, "ExigenceCommentaire", "ExigenceFonctionnel", "ExigenceFonctionTache"); return(View(tableExigence)); }
// GET: TableExigences/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TableExigence tableExigence = db.TableExigence.Find(id); if (tableExigence == null) { return(HttpNotFound()); } return(View(tableExigence)); }