コード例 #1
0
        public async Task CloseAsync(Adjustment adjustment)
        {
            adjustment.Close();

            _repository.Update(adjustment);

            adjustment.AddEvent(new AdjustmentClosedEvent(adjustment.Id));

            await _repository.UnitOfWork.CommitAsync();
        }