Continuo fix interfaces

This commit is contained in:
Samuele E. Locatelli (W11-AI)
2026-03-25 16:12:13 +01:00
parent 10dde714e2
commit e455bb217e
4 changed files with 85 additions and 2 deletions
@@ -12,6 +12,7 @@
#region Public Methods
/// <inheritdoc />
public async Task<bool> AddAsync(SellingItemModel entity)
{
await using var dbCtx = await CreateContextAsync();
@@ -19,6 +20,7 @@
return await dbCtx.SaveChangesAsync() > 0;
}
/// <inheritdoc />
public async Task<bool> DeleteAsync(SellingItemModel entity)
{
await using var dbCtx = await CreateContextAsync();
@@ -26,6 +28,7 @@
return await dbCtx.SaveChangesAsync() > 0;
}
/// <inheritdoc />
public async Task<List<SellingItemModel>> GetByEnvirAsync(EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS envir)
{
await using var dbCtx = await CreateContextAsync();
@@ -35,6 +38,7 @@
.ToListAsync();
}
/// <inheritdoc />
public async Task<SellingItemModel?> GetByIdAsync(int recId)
{
await using var dbCtx = await CreateContextAsync();
@@ -43,6 +47,7 @@
.FirstOrDefaultAsync();
}
/// <inheritdoc />
public async Task<List<SellingItemModel>> GetFiltAsync(EgwMultiEngineManager.Data.Constants.EXECENVIRONMENTS envir, ItemSourceType sourceType)
{
await using var dbCtx = await CreateContextAsync();
@@ -52,6 +57,7 @@
.ToListAsync();
}
/// <inheritdoc />
public async Task<bool> UpdateAsync(SellingItemModel entity)
{
await using var dbCtx = await CreateContextAsync();