Exemple #1
0
        private async Task UpdateOrder(Order order, CancellationToken cancellationToken)
        {
            _dbContext.Update(order);

            await _dbContext.SaveChangesAsync(cancellationToken);
        }
Exemple #2
0
        private async Task UpdateOrderItem(UpdateOrderItemV1Command request, CancellationToken cancellationToken)
        {
            _dbContext.Update(request.OrderItem);

            await _dbContext.SaveChangesAsync(cancellationToken);
        }