Chnage response of get tag API

This commit is contained in:
ashutosh.nehete 2025-09-03 16:05:35 +05:30
parent 2e55d1e3c4
commit 961cc018cf

View File

@ -544,7 +544,11 @@ namespace Marco.Pms.Services.Controllers
// Retrieve the tags that belong to the specified tenant and project only the names (performance: projection) // Retrieve the tags that belong to the specified tenant and project only the names (performance: projection)
var tags = await context.DocumentTagMasters var tags = await context.DocumentTagMasters
.Where(dt => dt.TenantId == tenantId) .Where(dt => dt.TenantId == tenantId)
.Select(dt => dt.Name) .Select(dt => new
{
Name = dt.Name,
IsActive = true
})
.ToListAsync(); .ToListAsync();
_logger.LogInfo("Successfully retrieved {TagCount} document tags for tenant {TenantId}.", tags.Count, tenantId); _logger.LogInfo("Successfully retrieved {TagCount} document tags for tenant {TenantId}.", tags.Count, tenantId);