/// <summary> /// Removes the payor type member. /// </summary> /// <param name="payorTypeMember">The payor type member.</param> public virtual void RemovePayorTypeMember(PayorTypeMember payorTypeMember) { Check.IsNotNull(payorTypeMember, "Payor type member is required."); var existingTypeMember = _payorTypeMembers.FirstOrDefault ( m => m.PayorType.Key == payorTypeMember.PayorType.Key ); if (existingTypeMember != null) { _payorTypeMembers.Remove(existingTypeMember); NotifyItemRemoved(() => PayorTypeMembers, payorTypeMember); } }
/// <summary> /// Adds the payor type member. /// </summary> /// <param name="payorType">Type of the payor.</param> public virtual void AddPayorTypeMember(PayorType payorType) { var payorTypeMember = new PayorTypeMember(payorType, this); _payorTypeMembers.Add(payorTypeMember); NotifyItemAdded(() => PayorTypeMembers, payorTypeMember); }