public async Task <PageModuleTypeDetails> ExecuteAsync(GetByIdQuery <PageModuleTypeDetails> query, IExecutionContext executionContext)
        {
            var result = await GetPageModuleTypeById(query.Id);

            if (result == null)
            {
                return(null);
            }

            var dataModelType = GetModuleDataModelType(result);

            _dynamicDataModelTypeMapper.Map(result, dataModelType);

            return(result);
        }
Beispiel #2
0
        public async Task <CustomEntityDataModelSchema> ExecuteAsync(GetByStringQuery <CustomEntityDataModelSchema> query, IExecutionContext executionContext)
        {
            var definition = await _queryExecutor.GetByIdAsync <CustomEntityDefinitionSummary>(query.Id);

            if (definition == null)
            {
                return(null);
            }

            var result = new CustomEntityDataModelSchema();

            _dynamicDataModelTypeMapper.Map(result, definition.DataModelType);

            return(result);
        }