private void AddPayorPhone(PayorPhoneDto payorPhoneDto, Payor payor) { var phoneType = _mappingHelper.MapLookupField <PayorPhoneType> (payorPhoneDto.PayorPhoneType); var phoneNumber = new PayorPhone(phoneType, new Phone(payorPhoneDto.PhoneNumber, payorPhoneDto.PhoneExtensionNumber)); payor.AddPayorPhoneNumber(phoneNumber); }
private static void RemovePayorPhone( PayorPhoneDto payorPhoneDto, Payor payor, PayorPhone payorPhone) { payor.RemovePayorPhoneNumber(payorPhone); }
private void ChangePayorPhone( PayorPhoneDto payorPhoneDto, Payor payor, PayorPhone payorPhone) { RemovePayorPhone(payorPhoneDto, payor, payorPhone); AddPayorPhone(payorPhoneDto, payor); }