Esempio n. 1
0
        public Task ExecuteAsync(CreateAddressCommand message)
        {
            foreach (var item in message.Addresses)
            {
                addresses.Add(_addressFactory.Create(item));
            }
            _adresseRepository.AddRange(addresses);

            return(Task.CompletedTask);
        }