public ActionResult DeleteConfirmed(int id) { RECORD_PACKING rECORD_PACKING = db.RECORD_PACKING.Find(id); db.RECORD_PACKING.Remove(rECORD_PACKING); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "RECORD_FK,BAG,BOX")] RECORD_PACKING rECORD_PACKING) { if (ModelState.IsValid) { db.Entry(rECORD_PACKING).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.RECORD_FK = new SelectList(db.PET_RECORD, "ID_PK", "CODE", rECORD_PACKING.RECORD_FK); return(View(rECORD_PACKING)); }
// GET: RECORD_PACKING/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RECORD_PACKING rECORD_PACKING = db.RECORD_PACKING.Find(id); if (rECORD_PACKING == null) { return(HttpNotFound()); } return(View(rECORD_PACKING)); }
// GET: RECORD_PACKING/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RECORD_PACKING rECORD_PACKING = db.RECORD_PACKING.Find(id); if (rECORD_PACKING == null) { return(HttpNotFound()); } ViewBag.RECORD_FK = new SelectList(db.PET_RECORD, "ID_PK", "CODE", rECORD_PACKING.RECORD_FK); return(View(rECORD_PACKING)); }