Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

CurrencyService - replace ToLower with ToLowerInvariant

KrzysztofPajakb518c750e510
diff --git a/src/Business/Grand.Business.Common/Services/Directory/CurrencyService.cs b/src/Business/Grand.Business.Common/Services/Directory/CurrencyService.cs
index da771adc8..69e5e18b1 100644
--- a/src/Business/Grand.Business.Common/Services/Directory/CurrencyService.cs
+++ b/src/Business/Grand.Business.Common/Services/Directory/CurrencyService.cs
@@ -107,7 +107,7 @@ namespace Grand.Business.Common.Services.Directory
return await _cacheBase.GetAsync(key, async () =>
{
var query = from q in _currencyRepository.Table
- where q.CurrencyCode.ToLowerInvariant() == currencyCode.ToLower()
+ where q.CurrencyCode.ToLowerInvariant() == currencyCode.ToLowerInvariant()
select q;
return await Task.FromResult(query.FirstOrDefault());
});