Fix gestione allegati e creato metodo di esportazione log

This commit is contained in:
2026-03-04 11:51:42 +01:00
parent 3760e38c8d
commit 2d938fb210
26 changed files with 986 additions and 384 deletions

View File

@@ -182,6 +182,17 @@ public class IspezioniService(AppDbContext db) : IIspezioniService
return true;
}
public async Task<bool> UpdateFileListSchedaAsync(int schedaId, List<string>? imageNames)
{
var scheda = await db.Schede.FirstOrDefaultAsync(x => x.Id == schedaId);
if (scheda is null) return false;
scheda.ImageNames = imageNames;
db.Schede.Update(scheda);
await db.SaveChangesAsync();
return true;
}
public async Task<bool> DeleteSchedaAsync(int schedaId)
{
var scheda = await db.Schede.FirstOrDefaultAsync(x => x.Id == schedaId);