Esempio n. 1
0
 public ActionResult DeleteConfirmed(int id)
 {
     TFDBLibrary.producttbl producttbl = db.producttbl.Find(id);
     db.producttbl.Remove(producttbl);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
Esempio n. 2
0
 // 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));
 }