diff --git a/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs b/src/Web/Grand.Web.Admin/Controllers/PaymentTransactionController.cs index 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.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 PaymentTransactionController( ITranslationService translationService, IPaymentTransactionService paymentTransactionService, IOrderService orderService, - IContextAccessor contextAccessor, IDateTimeService dateTimeService, IMediator mediator, IEnumTranslationService enumTranslationService) @@ -35,7 +33,6 @@ public PaymentTransactionController( _translationService = translationService; _paymentTransactionService = paymentTransactionService; _orderService = orderService; - _contextAccessor = contextAccessor; _dateTimeService = dateTimeService; _mediator = mediator; _enumTranslationService = enumTranslationService; @@ -48,7 +45,6 @@ public PaymentTransactionController( private 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.cs index 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.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 ProductAttributeController( IProductAttributeService 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 ProductAttributeController( private readonly IProductAttributeService _productAttributeService; private readonly ILanguageService _languageService; private readonly ITranslationService _translationService; - private readonly IContextAccessor _contextAccessor; private readonly SeoSettings _seoSettings; #endregion Fields diff --git a/src/Web/Grand.Web.Admin/Controllers/SpecificationAttributeController.cs b/src/Web/Grand.Web.Admin/Controllers/SpecificationAttributeController.cs index 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.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 SpecificationAttributeController( ISpecificationAttributeService 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 async Task UsedByProducts(DataSourceRequest command, strin private readonly IProductService _productService; private readonly ILanguageService _languageService; private readonly ITranslationService _translationService; - private readonly IContextAccessor _contextAccessor; private readonly SeoSettings _seoSettings; #endregion Fields diff --git a/src/Web/Grand.Web.Vendor/Controllers/HomeController.cs b/src/Web/Grand.Web.Vendor/Controllers/HomeController.cs index 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 Ctor public HomeController( - IContextAccessor contextAccessor, ILogger logger, IGrandAuthenticationService authenticationService) { - _contextAccessor = contextAccessor; _logger = logger; _authenticationService = authenticationService; } @@ -25,7 +22,6 @@ public HomeController( #region Fields - private readonly IContextAccessor _contextAccessor; private readonly ILogger _logger; private readonly IGrandAuthenticationService _authenticationService;