Пример #1
0
        protected virtual IAddressBase MapAddress(DocumentAddress source, IAddressBase target)
        {
            if (source is null)
            {
                throw new ArgumentNullException(nameof(source));
            }
            if (target is null)
            {
                throw new ArgumentNullException(nameof(target));
            }

            target.AddressLine1 = source.AddressLine1;
            target.AddressLine2 = source.AddressLine2;
            target.City         = source.City;
            target.CountryID    = source.CountryID;
            target.State        = source.State;
            target.PostalCode   = source.PostalCode;

            return(target);
        }
 protected virtual void MapAddress(DocumentAddress docAddress, BAccount account, ref Address address)
 {
     base.MapAddress(docAddress, address);
 }