Пример #1
0
        public UserInfoPrincipal(string userName)
        {
            UserBusinessLogic userLogic = new UserBusinessLogic();
            var user = userLogic.GetUserInfoByUserName(userName);

            this.identity = new UserInfoIdentity(user.ID, user.UserName, user.IsAdmin);
        }
Пример #2
0
 public UserInfoPrincipal(string userName)
 {
     UserBusinessLogic userLogic = new UserBusinessLogic();
     var user = userLogic.GetUserInfoByUserName(userName);
     this.identity = new UserInfoIdentity(user.ID, user.UserName, user.IsAdmin);
 }