BLL.Computer.ExportCsv C# (CSharp) Method

ExportCsv() public static method

public static ExportCsv ( string path ) : void
path string
return void
        public static void ExportCsv(string path)
        {
            using (var csv = new CsvWriter(new StreamWriter(path)))
            {
                csv.Configuration.RegisterClassMap<Models.ComputerCsvMap>();
                csv.WriteRecords(GetAll());
            }
        }