|
|
@ -383,10 +383,14 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES |
|
|
|
if (oldBarcodeItem != null) |
|
|
|
{ |
|
|
|
for (int i = 0; i < oldBarcodeItem.Count; i++) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
_context.BarcodeItems.Remove(oldBarcodeItem[i]); |
|
|
|
await _context.SaveChangesAsync(); |
|
|
|
} |
|
|
|
catch { } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
_context.Entry(barcodeInfo[0]).State = EntityState.Modified; |
|
|
|