public ActionResult DeleteConfirmed(int id) { TableTache tableTache = db.TableTache.Find(id); db.TableTache.Remove(tableTache); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(TableTache tableTache) { if (ModelState.IsValid) { db.TableTache.Add(tableTache); db.SaveChanges(); return(RedirectToAction("Index", new { id = tableTache.IdJalon })); } ViewBag.TacheTrigramme = new SelectList(db.TableTrigramme, "TrigrammeId", "TrigrammeNom", tableTache.TacheTrigramme); return(View(tableTache)); }
// GET: TableTaches/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TableTache tableTache = db.TableTache.Find(id); if (tableTache == null) { return(HttpNotFound()); } return(View(tableTache)); }
// GET: TableTaches/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TableTache tableTache = db.TableTache.Find(id); if (tableTache == null) { return(HttpNotFound()); } ViewBag.TacheTrigramme = new SelectList(db.TableTrigramme, "TrigrammeId", "TrigrammeNom", tableTache.TacheTrigramme); return(View(tableTache)); }