diff --git a/LittleShop/Services/ProductService.cs b/LittleShop/Services/ProductService.cs index 86e8cc0..864eb38 100644 --- a/LittleShop/Services/ProductService.cs +++ b/LittleShop/Services/ProductService.cs @@ -24,7 +24,6 @@ public class ProductService : IProductService .Include(p => p.MultiBuys) .Include(p => p.Variants) .Where(p => p.IsActive) - .AsNoTracking() .ToListAsync(); return products.Select(p => new ProductDto @@ -87,7 +86,6 @@ public class ProductService : IProductService .Include(p => p.MultiBuys) .Include(p => p.Variants) .Where(p => p.IsActive && p.CategoryId == categoryId) - .AsNoTracking() .ToListAsync(); return products.Select(p => new ProductDto