Ejemplo n.º 1
0
        public static Organizations GetAllOrganizationsAvailableAtGeography(int geographyId)
        {
            List <BasicGeography> nodeList = new List <BasicGeography>();

            nodeList.AddRange(GeographyCache.GetGeographyLine(geographyId));
            nodeList.AddRange(GeographyCache.GetGeographyTree(geographyId));

            return(FromIdentities(OrganizationCache.GetOrganizationsIdsInGeographies(nodeList.ToArray())));
        }
Ejemplo n.º 2
0
 public Geographies GetTree()
 {
     return(Geographies.FromArray(GeographyCache.GetGeographyTree(Identity)));
     // return Geographies.FromArray(SwarmDb.GetDatabaseForReading().GetGeographyTree(Identity));
 }