Пример #1
0
 public WebContextUser(UserAccount currentUser)
 {
     if (currentUser != null)
         Name = String.Format("{0} {1}", currentUser.FirstName, currentUser.LastName);
 }
Пример #2
0
 /// <summary>
 /// Create a new UserAccount object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="emailAddress">Initial value of the EmailAddress property.</param>
 /// <param name="passwordSalt">Initial value of the PasswordSalt property.</param>
 public static UserAccount CreateUserAccount(global::System.Guid id, global::System.DateTime createdDate, global::System.String emailAddress, global::System.Byte[] passwordSalt)
 {
     UserAccount userAccount = new UserAccount();
     userAccount.Id = id;
     userAccount.CreatedDate = createdDate;
     userAccount.EmailAddress = emailAddress;
     userAccount.PasswordSalt = passwordSalt;
     return userAccount;
 }