示例#1
0
 public ActionResult CreateOrder()
 {
     var order = new Model.Order.OrderMain();
     order.UserId = CurrentUser.Id;
     string error;
     var a = OrderManage.Instance.SubmitFromCart(order, out error);
     if(!a)
     {
         return Content(error);
     }
     return RedirectToAction("PayOrder", new { orderId = order.OrderId });
 }
示例#2
0
        public ActionResult CreateOrder()
        {
            var order = new Model.Order.OrderMain();

            order.UserId = CurrentUser.Id;
            string error;
            var    a = OrderManage.Instance.SubmitFromCart(order, out error);

            if (!a)
            {
                return(Content(error));
            }
            return(RedirectToAction("PayOrder", new { orderId = order.OrderId }));
        }