public ActionResult DeleteConfirmed(int id) { HeilShip heilShip = db.HeilShips.Find(id); db.HeilShips.Remove(heilShip); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "HeilShipId,OrderDateTime,CustomerId,CustomerDivisionId,MlsDivisionId,CustomerOrderNo,CustomerOrderLine,SoNumber,WoNumber,CustomerPn,UhPn,PartDescription,OrderQty,ShipQty,RequestedDateTime,PromiseDateTime,ShipDateTime,ShipPlanStatusId,CQStatusId,Carrier,TrackingInfo,ShipToAddress,Notes")] HeilShip heilShip) { if (ModelState.IsValid) { db.Entry(heilShip).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(heilShip)); }
// GET: HeilShips/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } HeilShip heilShip = db.HeilShips.Find(id); if (heilShip == null) { return(HttpNotFound()); } return(View(heilShip)); }