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 }); }
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 })); }