예제 #1
0
 public void ResetSessionInfo(Guid userGuid)
 {
     _cartGuidResetter.ResetCartGuid(userGuid);
     foreach (var key in Keys)
     {
         _cartSessionManager.RemoveValue(key, userGuid);
     }
 }
예제 #2
0
 public void SetShippingMethod(IShippingMethod shippingMethod)
 {
     if (shippingMethod != null)
     {
         _cartSessionManager.SetSessionValue(CurrentShippingMethodTypeKey, _getUserGuid.UserGuid,
                                             shippingMethod.TypeName);
     }
     else
     {
         _cartSessionManager.RemoveValue(CurrentShippingMethodTypeKey, _getUserGuid.UserGuid);
     }
 }
 public void Clear()
 {
     CartKeys.ForEach(s => _cartSessionManager.RemoveValue(s, _getUserGuid.UserGuid));
 }