Beispiel #1
0
        public static PersonList GetUniqueInstance()
        {
            if (_uniqueInstance == null)
            {
                _uniqueInstance = new PersonList("SF_Person");
            }

            return(_uniqueInstance);
        }
Beispiel #2
0
        public void Delete(Organization organization)
        {
            PersonList.GetUniqueInstance().Delete(organization);

            var subOrgList = _list.Where(itemSubOrg => itemSubOrg.Value.ParentOrganization == organization).ToList();

            subOrgList.ForEach(itemSubOrg => itemSubOrg.Value.Delete());

            _list.Remove(organization.ID);

            _provider.Delete("SF_Organization", organization.ID);
        }