Exemple #1
0
 public User(UserModel model)
 {
     EmployeeId      = model.Id;
     NamePrefix      = model.NamePrefix;
     NameFirst       = model.NameFirst;
     NameLast        = model.NameLast;
     NameSuffix      = model.NameSuffix;
     Username        = model.Username;
     Password        = model.Password;
     DisplayName     = model.DisplayName;
     ProfileImageUrl = model.ProfileImageUrl;
     MustChangePasswordAtNextLogin = model.MustChangePasswordAtNextLogin;
     PasswordExpirationDateTime    = model.PasswordExpirationDateTime;
     Enabled        = model.Enabled;
     EmailAddresses = EmailAddress.Construct(model.EmailAddresses);
     PhoneNumbers   = PhoneNumber.Construct(model.PhoneNumbers);
     Roles          = model.Roles;
 }