Add registry element data view

This commit is contained in:
2025-11-04 17:17:53 +09:00
parent 9799086b53
commit 48cab2cde9
5 changed files with 50 additions and 4 deletions

View File

@ -61,5 +61,13 @@ namespace Hcs.WebApp.Services
using var context = GetNewContext();
return await context.Elements.Where(x => x.RegistryId == registryId).ToListAsync();
}
public async Task<string?> GetRegistryElementJsonAsync(Guid registryElementId)
{
using var context = GetNewContext();
return await (from registryElement in context.Elements
where registryElement.Id == registryElementId
select registryElement.Json).FirstOrDefaultAsync();
}
}
}