public async Task <IActionResult> DecrementInventory(Guid itemId, decimal quantity, int index, CancellationToken cancellationToken)
        {
            _logger.LogDebug($"Got request {index}");
            var inventory = await _decrementService.DecrementInventoryAsync(itemId, quantity, index, cancellationToken);

            return(Ok(inventory));
        }
예제 #2
0
 public Task <Inventory> DecrementInventoryAsync(Guid itemId, decimal quantity, int index, CancellationToken cancellationToken)
 {
     return(_decrementService.DecrementInventoryAsync(itemId, quantity, index, cancellationToken));
 }