예제 #1
0
        public async Task <string> DownloadBuyerLocation([FromBody] ReportTemplate reportTemplate, string templateID)
        {
            RequireOneOf(CustomRole.MPReportReader, CustomRole.MPReportAdmin);
            var reportData = await _reportDataCommand.BuyerLocation(templateID, VerifiedUserContext);

            return(await _downloadReportCommand.ExportToExcel(ReportTypeEnum.BuyerLocation, reportTemplate, reportData));
        }
예제 #2
0
        public async Task <string> DownloadBuyerLocation([FromBody] ReportTemplate reportTemplate, string templateID)
        {
            var reportData = await _reportDataCommand.BuyerLocation(templateID, UserContext);

            return(await _downloadReportCommand.ExportToExcel(ReportTypeEnum.BuyerLocation, reportTemplate.Headers, reportData));
        }