CreateOrUpdateCart Method

Updates the specified cart if it exists; otherwise, a new cart is created.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Client
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Client (in Microsoft.Dynamics.Commerce.Runtime.Client.dll)

public Cart CreateOrUpdateCart(
	Cart cart,
	CalculationModes modes
)

Return Value

Type: Microsoft.Dynamics.Commerce.Runtime.DataModel.Cart
The saved cart.

Community Additions

Show: