public function downloadCsvFile()
{
$csv = $this->pendingApplicationsCSV();
header('Content-type: text/csv');
header("Content-Disposition: attachment; filename='PendingApplications.csv'");
header('Pragma: no-cache');
header('Expires: 0');
echo $csv;
}