Exemple #1
0
        public void Contact(string contactId, bool isEditMode)
        {
            _view.SetVisibilityButttons(isEditMode);

            if (!string.IsNullOrEmpty(contactId))
            {
                int.TryParse(contactId, out int id);

                var contactData = _personData.GetContactById(id);

                var contact = contactData.Item1;
                ContactDetails.Phones    = contactData.Item2;
                ContactDetails.Addresses = contactData.Item3;

                SetContactToView(contact);
            }

            _view.OpenView();
        }