public ActionResult Step6(int id = 0)
 {
     EcommercePlatformDataContext db = new EcommercePlatformDataContext();
     ViewBag.orderID = db.Carts.Where(x => x.ID.Equals(id)).Select(x => x.payment_id).First();
     EDI edi = new EDI();
     edi.CreatePurchaseOrder(id);
     return View("Confirmation");
 }
Пример #2
0
        public ActionResult RegeneratePO(int id = 0) {
            Settings settings = new Settings();
            if (settings.Get("EDIOrderProcessing") == "true") {

                EDI edi = new EDI();
                Cart order = new Cart();
                order = order.GetByPayment(id);
                edi.CreatePurchaseOrder(order.ID);
            }
            return RedirectToAction("Items", new { id = id });
        }