private void AddLocationEmailAddress(LocationEmailAddressDto dto, Location location) { var emailAddressType = _mappingHelper.MapLookupField <LocationEmailAddressType> (dto.LocationEmailAddressType); location.AddEmailAddress(new LocationEmailAddress(new EmailAddress(dto.EmailAddress), emailAddressType)); }
private void ChangeLocationEmailAddress( LocationEmailAddressDto locationEmailAddressDto, Location location, LocationEmailAddress locationEmailAddress) { RemoveLocationEmailAddress(locationEmailAddressDto, location, locationEmailAddress); AddLocationEmailAddress(locationEmailAddressDto, location); }
private static void RemoveLocationEmailAddress(LocationEmailAddressDto dto, Location location, LocationEmailAddress locationEmailAddress) { location.RemoveEmailAddress(locationEmailAddress); }