예제 #1
0
        private string GetCurrentUserId(IPrincipal?currentUser)
        {
            ClaimsIdentity?umbIdentity   = currentUser?.GetUmbracoIdentity();
            var            currentUserId = umbIdentity?.GetUserId <string>() ?? Core.Constants.Security.SuperUserIdAsString;

            return(currentUserId);
        }