コード例 #1
0
        private void AddLocationEmailAddress(LocationEmailAddressDto dto, Location location)
        {
            var emailAddressType = _mappingHelper.MapLookupField <LocationEmailAddressType> (dto.LocationEmailAddressType);

            location.AddEmailAddress(new LocationEmailAddress(new EmailAddress(dto.EmailAddress), emailAddressType));
        }
コード例 #2
0
 private void ChangeLocationEmailAddress(
     LocationEmailAddressDto locationEmailAddressDto, Location location, LocationEmailAddress locationEmailAddress)
 {
     RemoveLocationEmailAddress(locationEmailAddressDto, location, locationEmailAddress);
     AddLocationEmailAddress(locationEmailAddressDto, location);
 }
コード例 #3
0
 private static void RemoveLocationEmailAddress(LocationEmailAddressDto dto, Location location, LocationEmailAddress locationEmailAddress)
 {
     location.RemoveEmailAddress(locationEmailAddress);
 }