private bool CheckIfTelephoneExists(object obj) { if (ContactTelephpones.Any()) { return(true); } return(false); }
private void GetTelephoneDetails() { if (SelectedTelephoneIndex < 0) { SelectedTelephoneIndex = 0; } if (ContactTelephpones.Any()) { ContactTelephoneNumber = ContactTelephpones[SelectedTelephoneIndex].Number; ContactPhoneOperator = ContactTelephpones[SelectedTelephoneIndex].Operator; ContactPhoneType = ContactTelephpones[SelectedTelephoneIndex].Type; } else { ContactTelephoneNumber = 0; ContactPhoneOperator = string.Empty; ContactPhoneType = string.Empty; } }