Fix controli null ingresso
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user