public static void SetSearchCartQuery(this IResolveFieldContext context, ICartQuery query)
 {
     context.UserContext["storeId"]      = query.StoreId;
     context.UserContext["userId"]       = query.UserId;
     context.UserContext["currencyCode"] = query.CurrencyCode;
     context.UserContext["cultureName"]  = query.CultureName;
     context.UserContext["cartType"]     = query.CartType;
     context.UserContext["cartName"]     = query.CartName;
 }
Ejemplo n.º 2
0
 public CheckoutModel(ICartQuery cartQuery)
 {
     _cartQuery = cartQuery;
 }