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