private Data.ArtDatabankenService.SpeciesFactList GetTargetSpeciesFacts() { if (_targetSpeciesFacts.IsNull()) { SpeciesEncyclopediaArticle target = GetTargetSpeciesEncyclopediaArticle(); _targetSpeciesFacts = target.SpeciesFacts; } return(_targetSpeciesFacts); }
private Data.ArtDatabankenService.SpeciesFactList GetTargetSpeciesFacts() { if (_targetSpeciesFacts.IsNull()) { SpeciesInformationDocument target = GetTargetSpeciesInformationDocument(); _targetSpeciesFacts = target.SpeciesFacts; } return(_targetSpeciesFacts); }
private Data.ArtDatabankenService.SpeciesFactList GetSpeciesFacts() { if (_speciesFacts.IsNull()) { List <Int32> factorIds; factorIds = new List <Int32>(); List <Int32> taxonIds; taxonIds = new List <Int32>(); factorIds.Add((Int32)FactorId.LandscapeFactors); factorIds.Add((Int32)FactorId.LandscapeFactor_Agricultural); factorIds.Add((Int32)FactorId.LandscapeFactor_Alpin); factorIds.Add((Int32)FactorId.LandscapeFactor_Coast); taxonIds.Add(1); UserParameterSelection userParameterSelection = new UserParameterSelection(); userParameterSelection.Factors.Merge(Data.ArtDatabankenService.FactorManager.GetFactors(factorIds)); userParameterSelection.Taxa.Merge(ArtDatabanken.Data.ArtDatabankenService.TaxonManager.GetTaxa(taxonIds, ArtDatabanken.Data.WebService.TaxonInformationType.Basic)); _speciesFacts = Data.ArtDatabankenService.SpeciesFactManager.GetSpeciesFactsByUserParameterSelection(userParameterSelection); } return(_speciesFacts); }