/// <summary> /// export all subplots to a CSV file /// </summary> /// <returns>CSV file</returns> public ActionResult ExportAllGeometries() { ImportExport importExport = new ImportExport(); //byte[] csvData = importExport.ExportAllPlots(); return(File(Encoding.ASCII.GetBytes(importExport.ExportAllGeometries()), "text/csv", "SubplotList.csv")); }