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
Remove unused _contextAccessor field from controllers (#672)
Krzysztof Pajak6409f8ba8067
diff --git a/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs b/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.csindex 04159eb40..c8cc05bdd 100644--- a/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs@@ -6,7 +6,6 @@ using Grand.Business.Core.Interfaces.Common.Localization;using Grand.Business.Core.Queries.Checkout.Orders;using Grand.Domain.Payments;using Grand.Domain.Permissions;-using Grand.Infrastructure;using Grand.SharedKernel;using Grand.Web.AdminShared.Models.Orders;using Grand.Web.Common.DataSource;@@ -27,7 +26,6 @@ public class PaymentTransactionController : BaseAdminControllerITranslationService translationService,IPaymentTransactionService paymentTransactionService,IOrderService orderService,- IContextAccessor contextAccessor,IDateTimeService dateTimeService,IMediator mediator,IEnumTranslationService enumTranslationService)@@ -35,7 +33,6 @@ public class PaymentTransactionController : BaseAdminController_translationService = translationService;_paymentTransactionService = paymentTransactionService;_orderService = orderService;- _contextAccessor = contextAccessor;_dateTimeService = dateTimeService;_mediator = mediator;_enumTranslationService = enumTranslationService;@@ -48,7 +45,6 @@ public class PaymentTransactionController : BaseAdminControllerprivate readonly IPaymentTransactionService _paymentTransactionService;private readonly IOrderService _orderService;private readonly ITranslationService _translationService;- private readonly IContextAccessor _contextAccessor;private readonly IDateTimeService _dateTimeService;private readonly IMediator _mediator;private readonly IEnumTranslationService _enumTranslationService;diff --git a/src/Web/Grand.Web.Admin/Controllers/ProductAttributeController.cs b/src/Web/Grand.Web.Admin/Controllers/ProductAttributeController.csindex 93bcf5f4b..132228e55 100644--- a/src/Web/Grand.Web.Admin/Controllers/ProductAttributeController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/ProductAttributeController.cs@@ -3,7 +3,6 @@ using Grand.Business.Core.Interfaces.Catalog.Products;using Grand.Business.Core.Interfaces.Common.Localization;using Grand.Domain.Permissions;using Grand.Domain.Seo;-using Grand.Infrastructure;using Grand.Web.AdminShared.Extensions.Mapping;using Grand.Web.AdminShared.Models.Catalog;using Grand.Web.Common.DataSource;@@ -23,14 +22,12 @@ public class ProductAttributeController : BaseAdminControllerIProductAttributeService productAttributeService,ILanguageService languageService,ITranslationService translationService,- IContextAccessor contextAccessor,SeoSettings seoSettings){_productService = productService;_productAttributeService = productAttributeService;_languageService = languageService;_translationService = translationService;- _contextAccessor = contextAccessor;_seoSettings = seoSettings;}@@ -42,7 +39,6 @@ public class ProductAttributeController : BaseAdminControllerprivate readonly IProductAttributeService _productAttributeService;private readonly ILanguageService _languageService;private readonly ITranslationService _translationService;- private readonly IContextAccessor _contextAccessor;private readonly SeoSettings _seoSettings;#endregion Fieldsdiff --git a/src/Web/Grand.Web.Admin/Controllers/SpecificationAttributeController.cs b/src/Web/Grand.Web.Admin/Controllers/SpecificationAttributeController.csindex e72ef752d..92129cfdf 100644--- a/src/Web/Grand.Web.Admin/Controllers/SpecificationAttributeController.cs+++ b/src/Web/Grand.Web.Admin/Controllers/SpecificationAttributeController.cs@@ -3,7 +3,6 @@ using Grand.Business.Core.Interfaces.Catalog.Products;using Grand.Business.Core.Interfaces.Common.Localization;using Grand.Domain.Permissions;using Grand.Domain.Seo;-using Grand.Infrastructure;using Grand.Web.AdminShared.Extensions.Mapping;using Grand.Web.AdminShared.Models.Catalog;using Grand.Web.Common.DataSource;@@ -22,14 +21,12 @@ public class SpecificationAttributeController : BaseAdminControllerISpecificationAttributeService specificationAttributeService,ILanguageService languageService,ITranslationService translationService,- IContextAccessor contextAccessor,IProductService productService,SeoSettings seoSettings){_specificationAttributeService = specificationAttributeService;_languageService = languageService;_translationService = translationService;- _contextAccessor = contextAccessor;_productService = productService;_seoSettings = seoSettings;}@@ -96,7 +93,6 @@ public class SpecificationAttributeController : BaseAdminControllerprivate readonly IProductService _productService;private readonly ILanguageService _languageService;private readonly ITranslationService _translationService;- private readonly IContextAccessor _contextAccessor;private readonly SeoSettings _seoSettings;#endregion Fieldsdiff --git a/src/Web/Grand.Web.Vendor/Controllers/HomeController.cs b/src/Web/Grand.Web.Vendor/Controllers/HomeController.csindex 9e14129e8..30030e4e1 100644--- a/src/Web/Grand.Web.Vendor/Controllers/HomeController.cs+++ b/src/Web/Grand.Web.Vendor/Controllers/HomeController.cs@@ -2,7 +2,6 @@using Grand.Business.Core.Interfaces.Common.Directory;using Grand.Business.Core.Interfaces.Common.Localization;using Grand.Domain.Directory;-using Grand.Infrastructure;using Microsoft.AspNetCore.Mvc;namespace Grand.Web.Vendor.Controllers;@@ -12,11 +11,9 @@ public class HomeController : BaseVendorController#region Ctorpublic HomeController(- IContextAccessor contextAccessor,ILogger<HomeController> logger,IGrandAuthenticationService authenticationService){- _contextAccessor = contextAccessor;_logger = logger;_authenticationService = authenticationService;}@@ -25,7 +22,6 @@ public class HomeController : BaseVendorController#region Fields- private readonly IContextAccessor _contextAccessor;private readonly ILogger<HomeController> _logger;private readonly IGrandAuthenticationService _authenticationService;