|
@ -384,8 +384,12 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES |
|
|
{ |
|
|
{ |
|
|
for (int i = 0; i < oldBarcodeItem.Count; i++) |
|
|
for (int i = 0; i < oldBarcodeItem.Count; i++) |
|
|
{ |
|
|
{ |
|
|
_context.BarcodeItems.Remove(oldBarcodeItem[i]); |
|
|
try |
|
|
await _context.SaveChangesAsync(); |
|
|
{ |
|
|
|
|
|
_context.BarcodeItems.Remove(oldBarcodeItem[i]); |
|
|
|
|
|
await _context.SaveChangesAsync(); |
|
|
|
|
|
} |
|
|
|
|
|
catch { } |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|