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