Exemple #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));
        }
Exemple #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));
        }