示例#1
0
        private void AddLocationPhone(LocationPhoneDto locationPhoneDto, LocationAddressAndPhone locationAddressAndPhone)
        {
            var locationAddressPhoneType = _mappingHelper.MapLookupField <LocationPhoneType> (locationPhoneDto.LocationPhoneType);

            locationAddressAndPhone.AddPhone(
                new LocationPhoneBuilder().WithLocationPhoneType(locationAddressPhoneType).WithPhone(
                    new PhoneBuilder().WithPhoneNumber(locationPhoneDto.PhoneNumber).WithPhoneExtensionNumber(
                        locationPhoneDto.PhoneExtensionNumber)));
        }
示例#2
0
 private static void RemoveLocationPhone(
     LocationPhoneDto locationAddressPhoneDto, LocationAddressAndPhone locationAddressAndPhone, LocationPhone locationPhone)
 {
     locationAddressAndPhone.RemovePhone(locationPhone);
 }
示例#3
0
 private void ChangeLocationPhone(
     LocationPhoneDto locationAddressPhoneDto, LocationAddressAndPhone locationAddressAndPhone, LocationPhone locationPhone)
 {
     RemoveLocationPhone(locationAddressPhoneDto, locationAddressAndPhone, locationPhone);
     AddLocationPhone(locationAddressPhoneDto, locationAddressAndPhone);
 }