コード例 #1
0
ファイル: UserInfoPrincipal.cs プロジェクト: jqk6/superjokes
        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);
 }