Example #1
0
        public async Task <IActionResult> Put([FromBody] PartTransfer partTransfer)
        {
            try
            {
                await this._partService.TransferInventoryInternallyAsync(partTransfer);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex.ToString()));
            }
        }
Example #2
0
 public async Task TransferInventoryInternallyAsync(PartTransfer partTransfer)
 {
     await Task.Run(() => this._partRepository.TransferInventoryInternallyAsync(partTransfer));
 }