private void DeleteTelephone(object obj) { _contactRepository.DeleteTelephone(ContactTelephpones[SelectedTelephoneIndex], ContactList[SelectedContactIndexList]); ContactTelephpones.Remove(ContactTelephpones[SelectedTelephoneIndex]); GetNumberofObjectsInDatabase(); }