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))); }
private static void RemoveLocationPhone( LocationPhoneDto locationAddressPhoneDto, LocationAddressAndPhone locationAddressAndPhone, LocationPhone locationPhone) { locationAddressAndPhone.RemovePhone(locationPhone); }
private void ChangeLocationPhone( LocationPhoneDto locationAddressPhoneDto, LocationAddressAndPhone locationAddressAndPhone, LocationPhone locationPhone) { RemoveLocationPhone(locationAddressPhoneDto, locationAddressAndPhone, locationPhone); AddLocationPhone(locationAddressPhoneDto, locationAddressAndPhone); }