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)); }
public Task <Inventory> DecrementInventoryAsync(Guid itemId, decimal quantity, int index, CancellationToken cancellationToken) { return(_decrementService.DecrementInventoryAsync(itemId, quantity, index, cancellationToken)); }