Show elements in registry

This commit is contained in:
2025-11-04 12:18:42 +09:00
parent 2893cda947
commit 9cf89a5ad6
3 changed files with 27 additions and 16 deletions

View File

@ -55,5 +55,11 @@ namespace Hcs.WebApp.Services
});
await context.SaveChangesAsync();
}
public async Task<ICollection<RegistryElement>> GetRegistryElementsAsync(Guid registryId)
{
using var context = GetNewContext();
return await context.Elements.Where(x => x.RegistryId == registryId).ToListAsync();
}
}
}