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.

Typo fix - rename file

KrzysztofPajak29ca20e1e85c
diff --git a/src/Web/Grand.Web/Features/Handlers/Catalog/GetSortingOptionsHandler.cs b/src/Web/Grand.Web/Features/Handlers/Catalog/GetViewSortSizeOptionsHandler.cs
similarity index 99%
rename from src/Web/Grand.Web/Features/Handlers/Catalog/GetSortingOptionsHandler.cs
rename to src/Web/Grand.Web/Features/Handlers/Catalog/GetViewSortSizeOptionsHandler.cs
index f3362d99e..3fabf8156 100644
--- a/src/Web/Grand.Web/Features/Handlers/Catalog/GetSortingOptionsHandler.cs
+++ b/src/Web/Grand.Web/Features/Handlers/Catalog/GetViewSortSizeOptionsHandler.cs
@@ -54,8 +54,7 @@ namespace Grand.Web.Features.Handlers.Catalog
.Except(_catalogSettings.ProductSortingEnumDisabled)
.Select((idOption) =>
{
- int order;
- return new KeyValuePair<int, int>(idOption, _catalogSettings.ProductSortingEnumDisplayOrder.TryGetValue(idOption, out order) ? order : idOption);
+ return new KeyValuePair<int, int>(idOption, _catalogSettings.ProductSortingEnumDisplayOrder.TryGetValue(idOption, out var order) ? order : idOption);
})
.OrderBy(x => x.Value);
if (request.Command.OrderBy == null)