Add registry element data view
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user