C# Class VirtoCommerce.WebStore.Converters.CartConverter

Show file Open project: VirtoCommerce/vc-orchard-cms

Public Methods

Method Description
ToApiModel ( this cartViewModel ) : VirtoCommerce.ApiClient.DataContracts.Cart.ShoppingCart
ToViewModel ( this cart ) : Cart

Method Details

ToApiModel() public static method

public static ToApiModel ( this cartViewModel ) : VirtoCommerce.ApiClient.DataContracts.Cart.ShoppingCart
cartViewModel this
return VirtoCommerce.ApiClient.DataContracts.Cart.ShoppingCart

ToViewModel() public static method

public static ToViewModel ( this cart ) : Cart
cart this
return VirtoCommerce.WebStore.ViewModels.Cart