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
feat(arch001): add FilterOrderItems to IAdminDataScope<TEntity>
KrzysztofPajak04bb86c46d3e
diff --git a/src/Web/Grand.Web.AdminShared/Interfaces/IAdminDataScope.cs b/src/Web/Grand.Web.AdminShared/Interfaces/IAdminDataScope.csindex b9fda2ef5..9310c9829 100644--- a/src/Web/Grand.Web.AdminShared/Interfaces/IAdminDataScope.cs+++ b/src/Web/Grand.Web.AdminShared/Interfaces/IAdminDataScope.cs@@ -50,4 +50,15 @@ public interface IAdminDataScope<TEntity>/// `ResourceKeyPrefix != "Vendor"` check in ProductViewModelService, which overloaded a/// localization-key property for behavior gating.</summary>bool CanFeatureOnHomepage { get; }++ /// <summary>Order line items visible to the current host — e.g. Vendor sees only its own+ /// items within a mixed-vendor order. Identity (no filtering) for hosts with no such+ /// restriction (Admin, Store, and every non-Order entity). Only+ /// <see cref="Grand.Web.AdminShared.Services.VendorOrderDataScope"/> overrides this. Lives on+ /// the shared interface rather than a separate Order-only interface because+ /// IAdminDataScope<TEntity> is already the single per-host strategy object injected+ /// into BaseOrderController/OrderViewModelService — see ARCH-001 Order consolidation spec+ /// §3.4.</summary>+ IEnumerable<Grand.Domain.Orders.OrderItem> FilterOrderItems(+ IEnumerable<Grand.Domain.Orders.OrderItem> orderItems) => orderItems;}