public async Task <IActionResult> ExportOverallUserStats(string distributionGroupName,
                                                                 [FromQuery] DateTime?fromDate, [FromQuery] DateTime?toDate)
        {
            var(from, to) = Validate(fromDate, toDate);

            var stats = await _recipientService.GetStatsAsync(from, to, distributionGroupName);

            var result = OverAllStatsCsvResult.Create(stats);

            return(await Csv(result, _environment.IsDevelopment()));
        }
Пример #2
0
        public async Task <IActionResult> ExportOverallStats([FromQuery] DateTime?fromDate,
                                                             [FromQuery] DateTime?toDate)
        {
            var(from, to) = Validate(fromDate, toDate);

            var stats = await _memoService.GetStatsAsync(from, to);

            var result = OverAllStatsCsvResult.Create(stats);

            return(await Csv(result, _environment.IsDevelopment()));
        }