protected void AddOrEditContact(Button btnAdd, MasterEntity entity)
 {
     using(var c = NestedContainer)
     {
         Expander expContact = btnAdd.FindParentByType<Expander>();
         if (expContact != null && !expContact.IsExpanded)
         {
             expContact.IsExpanded = true;
         }
         Contact contact = null;
         if (Using<IEditContactModal>(c).AddUserContact(new Contact(Guid.Empty), out contact))
             AddContactToList(entity, contact);
     }
 }