// GET: OrderInfo/Create public ActionResult Checkout(FormCollection collection) { var order = new OrderInfo(); TryUpdateModel(order); db.SaveChanges(); return(View()); }
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(); } }