| | |
| | | } |
| | | } |
| | | |
| | | object lockObj = new object(); |
| | | |
| | | [HttpPost, Route("CompleteOutboundWithBarcode"), AllowAnonymous] |
| | | public WebResponseContent CompleteOutboundWithBarcode([FromBody] OutboundCompleteRequestDTO request) |
| | | { |
| | | try |
| | | { |
| | | if (!ModelState.IsValid) |
| | | return WebResponseContent.Instance.Error(string.Join("; ", ModelState.Values |
| | | .SelectMany(v => v.Errors) |
| | | .Select(e => e.ErrorMessage))); |
| | | lock (lockObj) |
| | | { |
| | | if (!ModelState.IsValid) |
| | | return WebResponseContent.Instance.Error(string.Join("; ", ModelState.Values |
| | | .SelectMany(v => v.Errors) |
| | | .Select(e => e.ErrorMessage))); |
| | | |
| | | return _outboundService.CompleteOutboundWithBarcode(request); |
| | | return _outboundService.CompleteOutboundWithBarcode(request); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |