(Comma Seperated Value) CSV file format is a very common way of storing datasets in other format.
It's a generic read and write function of CSV file using CSVHelper Class library.
You can Implement easily in your service with model and mapping-model(CSV header to model type mapping).