diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeStationController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeStationController.cs index 57147456..99fe824b 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeStationController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeStationController.cs @@ -315,9 +315,9 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES barcode_station.Systype = "S"; barcode_station.CreateDate = DateTime.Now; - _context.BarcodeStation.Add(barcode_station); try { + _context.BarcodeStation.Add(barcode_station); await _context.SaveChangesAsync(); } catch { }