Beispiel #1
0
        private Guid GetCommerceId()
        {
            var customerId = _profileCookieService.GetPropertyValue(ProfileCookieInfo.ProfileIdCookieValue);

            if (string.IsNullOrWhiteSpace(customerId))
            {
                customerId = Guid.NewGuid().ToString();
                _profileCookieService.SetPropertyValue(ProfileCookieInfo.ProfileIdCookieValue, customerId);
            }

            return(Guid.Parse(customerId));
        }