Action Result for MVC Export CSV and Zip Download

DOWNLOAD/LIVE PREVIEW

Action Result for MVC Export CSV and Zip Download

In MVC the ActionResult is the core element of returning knowledge. I’ve made three regular ActionResult that makes you quick returning knowledge:
1. ActionResult_Zip – you possibly can add many recordsdata and returns a Zip file with these recordsdata compressed
2. ActionResult_CSVDataTable : takes a DataTable as argument and returns a csv from this datatable
3. ActionResult_CSVObject : takes an IEnumerable(Record, array) of objects of identical kind and returns the csv from the properties of the sort and values of the IEnumerable objects.

DOWNLOAD/LIVE PREVIEW
Source

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.