aboutsummaryrefslogtreecommitdiff
path: root/RhSolutions.SkuParser.Api/Services/CsvParser.cs
diff options
context:
space:
mode:
Diffstat (limited to 'RhSolutions.SkuParser.Api/Services/CsvParser.cs')
-rw-r--r--RhSolutions.SkuParser.Api/Services/CsvParser.cs48
1 files changed, 24 insertions, 24 deletions
diff --git a/RhSolutions.SkuParser.Api/Services/CsvParser.cs b/RhSolutions.SkuParser.Api/Services/CsvParser.cs
index 436a949..2776721 100644
--- a/RhSolutions.SkuParser.Api/Services/CsvParser.cs
+++ b/RhSolutions.SkuParser.Api/Services/CsvParser.cs
@@ -1,24 +1,24 @@
-using System.Globalization;
-using CsvHelper;
-using CsvHelper.Configuration;
-using RhSolutions.SkuParser.Models;
-
-namespace RhSolutions.SkuParser.Services;
-
-/// <summary>
-/// Парсер артикулов и их количества из файлов *.csv
-/// </summary>
-public class CsvParser : ISkuParser
-{
- public IEnumerable<ProductQuantity> ParseProducts(IFormFile file)
- {
- using StreamReader reader = new(file.OpenReadStream());
- var config = new CsvConfiguration(CultureInfo.GetCultureInfo("ru-RU"))
- {
- HasHeaderRecord = false,
- };
- using CsvReader csvReader = new(reader, config);
-
- return csvReader.GetRecords<ProductQuantity>().ToList();
- }
-}
+using System.Globalization;
+using CsvHelper;
+using CsvHelper.Configuration;
+using RhSolutions.SkuParser.Models;
+
+namespace RhSolutions.SkuParser.Services;
+
+/// <summary>
+/// Парсер артикулов и их количества из файлов *.csv
+/// </summary>
+public class CsvParser : ISkuParser
+{
+ public IEnumerable<ProductQuantity> ParseProducts(IFormFile file)
+ {
+ using StreamReader reader = new(file.OpenReadStream());
+ var config = new CsvConfiguration(CultureInfo.GetCultureInfo("ru-RU"))
+ {
+ HasHeaderRecord = false,
+ };
+ using CsvReader csvReader = new(reader, config);
+
+ return csvReader.GetRecords<ProductQuantity>().ToList();
+ }
+}