示例#1
0
        public User GetCurrentUser()
        {
            logger.Info("UserHandler: Entering GetCurrentUser");
            var username = httpContextAccessor.Current.User.Identity.Name;
            var user     = membershipProvider.FindByUsername(username);

            return(user);
        }