public User GetUser(string email, string password)
{
User accountUser = null;
try
{
password = DES.Encrypt(
this.settings.SecurityKey,
SHA2.GetSHA256Hash(password)
);
accountUser =
this.accountUserRepository.Find(email, password);
}
catch (DataAccessLayerException)
{
throw;
}
catch (Exception ex)
{
throw new ServiceLayerException(ex);
}
return accountUser;
}