コード例 #1
0
        private List <UserProfile> GetFilterContacts(string[] excluded_contacts)
        {
            List <UserProfile> all_contacts = _contactFacade.GetOrgContacts(CurrentUser.User.org_key);

            if (excluded_contacts != null && excluded_contacts.Length > 0 && all_contacts != null)
            {
                foreach (var ct_key in excluded_contacts)
                {
                    all_contacts.RemoveAll(p => p.ct_key.ToString() == ct_key);
                }
            }

            return(all_contacts);
        }