protected override async Task <Response> CreateInternalResponseAsync(
            DateRangeDomainRequest request)
        {
            DailyStatistics dailyStatistics = await AggregateReportApiDao
                                              .GetDailyDispositionStatisticsAsync(request.BeginDateUtc.Value, request.EndDateUtc.Value,
                                                                                  request.DomainId);

            return(new DailyStatisticsResponse(dailyStatistics.Values));
        }
예제 #2
0
        protected override async Task <Response> CreateInternalResponseAsync(
            DateRangeDomainRequest request)
        {
            AggregatedStatistics aggregatedStatistics = await AggregateReportApiDao
                                                        .GetAggregatedComplianceStatisticsAsync(request.BeginDateUtc.Value, request.EndDateUtc.Value,
                                                                                                request.DomainId);

            return(new AggregatedStatisticsResponse(aggregatedStatistics.Values));
        }