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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Minor changes
supportff2f1f887f6b
diff --git a/src/Business/Grand.Business.Catalog/Services/Discounts/DiscountService.cs b/src/Business/Grand.Business.Catalog/Services/Discounts/DiscountService.csindex 22220e7c7..ea580db6a 100644--- a/src/Business/Grand.Business.Catalog/Services/Discounts/DiscountService.cs+++ b/src/Business/Grand.Business.Catalog/Services/Discounts/DiscountService.cs@@ -385,14 +385,10 @@ namespace Grand.Business.Catalog.Services.Discounts/// <param name="currency">Currency</param>/// <param name="couponCodeToValidate">Coupon code</param>/// <returns>Discount validation result</returns>- public virtual async Task<DiscountValidationResult> ValidateDiscount(Discount discount, Customer customer, Currency currency, string couponCodeToValidate)+ public virtual Task<DiscountValidationResult> ValidateDiscount(Discount discount, Customer customer, Currency currency, string couponCodeToValidate){- if (!string.IsNullOrEmpty(couponCodeToValidate))- {- return await ValidateDiscount(discount, customer, currency, new[] { couponCodeToValidate });- }-- return await ValidateDiscount(discount, customer, currency, Array.Empty<string>());+ var couponCodes = string.IsNullOrWhiteSpace(couponCodeToValidate) ? Array.Empty<string>() : new[] { couponCodeToValidate };+ return ValidateDiscount(discount, customer, currency, couponCodes);}/// <summary>