private static void RemoveLocationPhone( LocationPhoneDto locationAddressPhoneDto, LocationAddressAndPhone locationAddressAndPhone, LocationPhone locationPhone) { locationAddressAndPhone.RemovePhone(locationPhone); }
/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 10, Configuration.FieldSeparator), Id, PrimaryKeyValueLoc?.ToDelimitedString(), LocationDescription, LocationTypeLoc != null ? string.Join(Configuration.FieldRepeatSeparator, LocationTypeLoc.Select(x => x.ToDelimitedString())) : null, OrganizationNameLoc != null ? string.Join(Configuration.FieldRepeatSeparator, OrganizationNameLoc.Select(x => x.ToDelimitedString())) : null, LocationAddress != null ? string.Join(Configuration.FieldRepeatSeparator, LocationAddress.Select(x => x.ToDelimitedString())) : null, LocationPhone != null ? string.Join(Configuration.FieldRepeatSeparator, LocationPhone.Select(x => x.ToDelimitedString())) : null, LicenseNumber != null ? string.Join(Configuration.FieldRepeatSeparator, LicenseNumber.Select(x => x.ToDelimitedString())) : null, LocationEquipment != null ? string.Join(Configuration.FieldRepeatSeparator, LocationEquipment.Select(x => x.ToDelimitedString())) : null, LocationServiceCode?.ToDelimitedString() ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }
private void ChangeLocationPhone( LocationPhoneDto locationAddressPhoneDto, LocationAddressAndPhone locationAddressAndPhone, LocationPhone locationPhone) { RemoveLocationPhone(locationAddressPhoneDto, locationAddressAndPhone, locationPhone); AddLocationPhone(locationAddressPhoneDto, locationAddressAndPhone); }