public async Task <LogEntity> LogError(Exception exception, string information) { var log = LogEntity.LogError(_location, exception, information); return(await _repository.CreateLog(log) ? log : null); }