示例#1
0
文件: Payor.cs 项目: divyang4481/REM
        /// <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);
            }
        }
示例#2
0
文件: Payor.cs 项目: divyang4481/REM
 /// <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);
 }