示例#1
0
        public ActionResult Cancel(string id)
        {
            Order order = GetRequestedOrder(id);

            if (order == null)
            {
                return(RedirectToAction("Show"));
            }
            else
            {
                _pipeline.CancelOrder(order);
                TempData["Message"] = "Order Cancelled";
                return(RedirectToAction("Manage", new { id = order.ID.ToString() }));
            }
        }