public async Task LogException(Exception ex, IHttpContextAccessor httpContext) { await loggerRepository.LogToDatabaseAsync(ex, httpContext); }