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