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