diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeStationController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeStationController.cs index 9b57ad9b..57147456 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeStationController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeStationController.cs @@ -316,7 +316,11 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES barcode_station.CreateDate = DateTime.Now; _context.BarcodeStation.Add(barcode_station); - await _context.SaveChangesAsync(); + try + { + await _context.SaveChangesAsync(); + } + catch { } //紀錄筆數 result.Success = true;