test bild upload
All checks were successful
Branch - test - Build and Push Backend API Docker Image / build-and-push (push) Successful in 24s

This commit is contained in:
Tizian.Breuch
2025-11-07 10:50:37 +01:00
parent 56d3d6a169
commit 642ff5872d
2 changed files with 8 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ namespace Webshop.Application.Services.Admin
#region Unchanged Methods
public async Task<ServiceResult<IEnumerable<AdminProductDto>>> GetAllAdminProductsAsync()
{
var products = await _context.Products.Include(p => p.Images).Include(p => p.Productcategories).OrderBy(p => p.Name).ToListAsync();
var products = await _context.Products.AsNoTracking().Include(p => p.Images).Include(p => p.Productcategories).OrderBy(p => p.Name).ToListAsync();
var dtos = products.Select(MapToAdminDto).ToList();
return ServiceResult.Ok<IEnumerable<AdminProductDto>>(dtos);
}