Beispiel #1
0
        public UserInfo(UserInfo user)
        {
            Id       = user.Id;
            Username = user.Username;
            Nickname = user.Nickname;

            Password = user.Password;
            Email    = user.Email;
            Enable   = user.Enable;
            StcUser  = new STCInfo()
            {
                Username = user.StcUser.Username,
                Password = user.StcUser.Password,
            };
            Role = new List <RoleType>();
            if (user.Role.Count != 0)
            {
                Role.AddRange(user.Role);
            }
        }
Beispiel #2
0
 public UserInfo()
 {
     StcUser = new STCInfo();
     Role    = new List <RoleType>();
 }