Exemple #1
0
        public IEnumerable <CustomEntityRenderSummary> Execute(GetCustomEntityRenderSummariesByDefinitionCodeQuery query, IExecutionContext executionContext)
        {
            var dbResults = Query(query).ToList();
            var results   = _customEntityRenderSummaryMapper.MapSummaries(dbResults, executionContext);

            return(results);
        }
        public PagedQueryResult <CustomEntityRenderSummary> Execute(SearchCustomEntityRenderSummariesQuery query, IExecutionContext executionContext)
        {
            var dbQuery       = GetQuery(query);
            var dbPagedResult = dbQuery.ToPagedResult(query);
            var results       = _customEntityRenderSummaryMapper.MapSummaries(dbPagedResult.Items, executionContext);

            return(dbPagedResult.ChangeType(results));
        }
Exemple #3
0
        public Dictionary <int, CustomEntityRenderSummary> Execute(GetCustomEntityRenderSummariesByIdRangeQuery query, IExecutionContext executionContext)
        {
            var dbResults = Query(query).ToList();

            EnforcePermissions(dbResults, executionContext);
            var results = _customEntityRenderSummaryMapper.MapSummaries(dbResults, executionContext);

            return(results.ToDictionary(r => r.CustomEntityId));
        }