private void AddNewPhone(object obj) { Telephone newTelephone = new Telephone { Number = ContactTelephoneNumber, Operator = ContactPhoneOperator, Type = ContactPhoneType }; _contactRepository.AddTelephone(newTelephone, ContactList[SelectedContactIndexList]); ContactTelephpones.Add(newTelephone); GetNumberofObjectsInDatabase(); }