Hi,
We are normally using the following code te get the current order from the Context:
Context.CartContext = OrderContext.GetOrderContextById(StringConstants.ApplicationVariables.DefaultOrderContextId); return Context.Cart;
After having troubles with concurrency violations, some of which point to this code, and inspecting the underlying code with dot peek, it seems that the Context.Cart call itself does a save operation on the cart/order.
Should we be using another method to get the current cart/order?
Should a get operation at any time somehow be a save also?
As a recent experiment we have added the line
Context.LoadUserContextCarts();
before the Context.Cart call, this seems to help but we are not sure if this is 100% foolproof.
Please let us know what the correct method is.
Greets Hans