public UserInfoPrincipal(string userName) { UserBusinessLogic userLogic = new UserBusinessLogic(); var user = userLogic.GetUserInfoByUserName(userName); this.identity = new UserInfoIdentity(user.ID, user.UserName, user.IsAdmin); }