Example #1
0
        public static void GetExportCsv <T>(this List <T> list, string fileName)//
        {
            string csv = GetFileExportCsv(list) + new StringBuilder().AppendLine();

            csv += GetDataToCsv(list) + new StringBuilder().AppendLine();
            CSVHelper.ExportCsv(csv, fileName);
        }
Example #2
0
        public static void GetSampleCsv <T>(this List <T> list, string fileName)
        {
            string csv = GetFileUploadCsv(list) + new StringBuilder().AppendLine();

            CSVHelper.ExportCsv(csv, fileName);
        }