Exemple #1
0
 public UserViewModel(User usr)
 {
     Id = usr.Id;
     FirstName = usr.FirstName;
     LastName = usr.LastName;
     Password = usr.Password;
     RepeatPassword = usr.Password;
     Status = usr.Status;
 }
Exemple #2
0
 public User GetUserForCreation()
 {
     var usr = new User
     {
         Id = User.NewId(Key.GenerateGuid()).Full(),
         FirstName = FirstName,
         LastName = LastName,
         Email = Email,
         Password = User.HashPassword(Password),
         Status = AccountStatus.Enabled,
         Level = AccountLevel.Participant,
         DateCreated = Stamp.Time()
     };
     return usr;
 }