public async Task CloseAsync(Output output)
        {
            output.Close();

            _repository.Update(output);

            output.AddEvent(new OutputClosedEvent(output.Id));

            await _repository.UnitOfWork.CommitAsync();
        }