public async Task <IActionResult> Put([FromBody] PartTransfer partTransfer) { try { await this._partService.TransferInventoryInternallyAsync(partTransfer); return(Ok()); } catch (Exception ex) { return(StatusCode(500, ex.ToString())); } }
public async Task TransferInventoryInternallyAsync(PartTransfer partTransfer) { await Task.Run(() => this._partRepository.TransferInventoryInternallyAsync(partTransfer)); }