Пример #1
0
        public async Task <IndividualData> GetIndividual(IIndividual individual)
        {
            var model = await individual.GetModel();

            var valid = await individual.Properties.Validate();

            var actorEvent = await individual.GetCreator();

            var provider = await propertyProvider.GetProvider(model.ModelID);

            return(new IndividualData {
                Event = individual,
                ID = individual.IndividualID,
                Label = individual.Label,
                Actor = actorEvent?.IndividualID,
                ActorLabel = actorEvent?.Label,
                Valid = valid,
                PropertyProvider = provider,
                Model = model
            });
        }