diff --git a/src/Modules/OrchardCore.Commerce.Payment/Controllers/PaymentBaseController.cs b/src/Modules/OrchardCore.Commerce.Payment/Controllers/PaymentBaseController.cs index 27605f22..f7749ec4 100644 --- a/src/Modules/OrchardCore.Commerce.Payment/Controllers/PaymentBaseController.cs +++ b/src/Modules/OrchardCore.Commerce.Payment/Controllers/PaymentBaseController.cs @@ -6,7 +6,6 @@ using OrchardCore.DisplayManagement.Notify; using OrchardCore.Mvc.Core.Utilities; using System; -using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; namespace OrchardCore.Commerce.Payment.Controllers; @@ -20,11 +19,7 @@ protected PaymentBaseController(INotifier notifier, ILogger logger) _logger = logger; } - [SuppressMessage( - "Critical Code Smell", - "S6967:ModelState.IsValid should be called in controller actions", - Justification = "This is not a controller action.")] - public async Task ProduceActionResultAsync(PaymentOperationStatusViewModel paidStatusViewModel) + protected async Task ProduceActionResultAsync(PaymentOperationStatusViewModel paidStatusViewModel) { if (paidStatusViewModel.ShowMessage != null) { @@ -87,7 +82,7 @@ private RedirectToActionResult RedirectToActionWithParams( : returnUrl; } - object? routeValues = new { area, returnUrl = localReturnUrl }; + object routeValues = new { area, returnUrl = localReturnUrl }; if (!string.IsNullOrEmpty(orderId)) {