public void Error(string latestString, Exception exception, string message)
        {
            var error = new Error
            {
                Exception = exception.Message,
                LogString = latestString,
                Message   = message,
                Time      = $"{DateTime.Now:HH-mm:dd-MM-yyyy}"
            };

            _errorLogRepository.Error(error);
        }