I\'m trying to use CSVHelper to generate a CSV file and send it back to a browser, so the user can select a save location and filename and save the data.
The websit
Try in the controller:
HttpContext.Response.AddHeader("content-disposition", "attachment; filename=payments.csv");