diff --git a/Marco.Pms.Services/Controllers/DocumentController.cs b/Marco.Pms.Services/Controllers/DocumentController.cs index 798c255..0779a38 100644 --- a/Marco.Pms.Services/Controllers/DocumentController.cs +++ b/Marco.Pms.Services/Controllers/DocumentController.cs @@ -254,6 +254,7 @@ namespace Marco.Pms.Services.Controllers .ThenInclude(e => e!.JobRole) .Include(av => av.ChildAttachment) .ThenInclude(da => da!.DocumentType) + .ThenInclude(dt => dt!.DocumentCategory) .FirstOrDefaultAsync(av => av.ChildAttachmentId == id && av.TenantId == tenantId); // If no mapping found, return 404