Exemplo n.º 1
0
        public TaxonPropertiesList GetTaxonProperties(IUserContext userContext, ITaxon taxon)
        {
            TaxonPropertiesList properties      = new TaxonPropertiesList();
            ITaxonCategory      taxonCategory   = GetReferenceTaxonCategory(userContext, 1);
            ITaxonProperties    taxonProperties = new TaxonProperties()
            {
                DataContext = new DataContext(userContext), IsValid = true, TaxonCategory = taxonCategory, ValidToDate = new DateTime(2111, 12, 31)
            };

            taxon.SetTaxonProperties(new List <ITaxonProperties>()
            {
                taxonProperties
            });
            properties.Add(taxonProperties);
            return(properties);
        }