示例#1
0
        // GET: OrderInfo/Create
        public ActionResult Checkout(FormCollection collection)
        {
            var order = new OrderInfo();

            TryUpdateModel(order);
            db.SaveChanges();
            return(View());
        }
示例#2
0
 public void GetOrderInfo(OrderDto order)
 {
     if (order != null)
     {
         OrderInfo orderInfo = _orderInfoContext.OrderInfo.Find(order.OrderId);
         orderInfo.stauts     = order.Status;
         orderInfo.UpdateTime = DateTime.Now;
         _orderInfoContext.SaveChanges();
     }
 }