Fix controli null ingresso

This commit is contained in:
Samuele E. Locatelli (W11-AI)
2026-03-18 18:11:29 +01:00
parent 5593ddc7fc
commit 2c1bf139c9
4 changed files with 65 additions and 65 deletions
@@ -110,6 +110,9 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
public async Task<bool> SaveRowsAsync(List<OfferRowModel> rows)
{
// Add validation for null or empty list
if (rows == null || rows.Count == 0) return false;
await using var dbCtx = await CreateContextAsync();
// Wrap in transaction for atomicity (batch update multiple rows)