public void ResetSessionInfo(Guid userGuid) { _cartGuidResetter.ResetCartGuid(userGuid); foreach (var key in Keys) { _cartSessionManager.RemoveValue(key, userGuid); } }
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)); }