public UserViewModel(User usr) { Id = usr.Id; FirstName = usr.FirstName; LastName = usr.LastName; Password = usr.Password; RepeatPassword = usr.Password; Status = usr.Status; }
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; }