public void UpdatePassword(ObjectId userId, string password)
{
try
{
password = DES.Encrypt(
this.settings.SecurityKey,
SHA2.GetSHA256Hash(password)
);
this.accountUserRepository.UpdatePassword(userId, password);
}
catch (DataAccessLayerException)
{
throw;
}
catch (Exception ex)
{
throw new ServiceLayerException(ex);
}
}