Example #1
0
        public async Task <DestinyDefinitionsTraitsDestinyTraitDefinition> PopulateDefinition()
        {
            if (allTraitCategoryDefinitions == null)
            {
                allTraitCategoryDefinitions = await Definitions.GetAllTraitCategory();
            }

            TraitCategoryDefinition = allTraitCategoryDefinitions.FirstOrDefault(v => v.TraitIds.Contains(TraitId));

            if (TraitCategoryDefinition == null)
            {
                return(default);