public ActionResult DeleteConfirmed(string id) { table3 table3 = db.table3.Find(id); db.table3.Remove(table3); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /table3/Delete/5 public ActionResult Delete(string id = null) { table3 table3 = db.table3.Find(id); if (table3 == null) { return(HttpNotFound()); } return(View(table3)); }
public ActionResult Edit(table3 table3) { if (ModelState.IsValid) { db.Entry(table3).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(table3)); }
public ActionResult Create(table3 table3) { if (ModelState.IsValid) { db.table3.Add(table3); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(table3)); }