public ActionResult DeleteConfirmed(int id) { TFDBLibrary.producttbl producttbl = db.producttbl.Find(id); db.producttbl.Remove(producttbl); db.SaveChanges(); return(RedirectToAction("Index")); }
// GET: producttbls/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TFDBLibrary.producttbl producttbl = db.producttbl.Find(id); if (producttbl == null) { return(HttpNotFound()); } return(View(producttbl)); }