public static PasswordHistory FromDbEntity(SqlEntities.PasswordHistory passwordHistory, SqlEntities.User user, SqlEntities.SecurityQuestion securityQuestion)
        {
            if (passwordHistory == null)
            {
                return(null);
            }

            return(FromDbEntity(passwordHistory, User.FromDbEntity(user)));
        }
 public static PasswordHistory FromDbEntity(SqlEntities.PasswordHistory passwordHistory, User user)
 {
     return(new PasswordHistory
     {
         Id = passwordHistory.Id,
         User = user,
         Password = passwordHistory.Password,
         Added = passwordHistory.Added
     });
 }