コード例 #1
0
        public void InsertPhone(Phone newPhone)
        {
            if (Phones == null)
            {
                Phones = new List <Phone>();
            }

            if (Phones.Exists(ph => ph.PhoneId == newPhone.PhoneId))
            {
                return;
            }

            Phones.Add(newPhone);
        }