コード例 #1
0
        // TO DO:  Need to actually move over the updated fields
        private void UpdateAddressForContact(Commands.V1.Contact.Address.Update cmd)
        {
            Address address = _repository.GetAddress(cmd.AddressId);

            if (address == null)
            {
                throw new InvalidOperationException($"Address with id {cmd.AddressId} for Operating Context {cmd.OperatingContextId}cannot be found");
            }

            _repository.UpdateAddress(address);
        }