コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            VtShipPlan vtShipPlan = db.VtShipPlans.Find(id);

            db.VtShipPlans.Remove(vtShipPlan);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 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));
 }
コード例 #3
0
        // 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));
        }