Example #1
0
        public async Task <Guid> Handle(CreateParcelLockerCommand command, CancellationToken cancellationToken)
        {
            var parcelLocker = ParcelLocker.Create(command.Localization, null);

            await _parcelLockersRepository.CreateParcelLockerAsync(parcelLocker);

            return(parcelLocker.Id);
        }