public void LogActiviation(string licenseKey, ActivationResults activationResult, string ipAddress) { ActivationLog log = new ActivationLog(); log.LicenseKey = _hashingProvider.ComputeHash(licenseKey, "SHA256"); log.ActivationResult = activationResult; log.IpAddress = ipAddress; log.Timestamp = DateTime.Now; _activationLogRepository.SaveActivationLog(log); }