In MVC the ActionResult is the core component of returning data. I have made three usual ActionResult that makes you fast returning data:
1. ActionResult_Zip – you can add many files and returns a Zip file with those files compressed
2. ActionResult_CSVDataTable : takes a DataTable as argument and returns a csv from this datatable
3. ActionResult_CSVObject : takes an IEnumerable(List, array) of objects of same type and returns the csv from the properties of the type and values of the IEnumerable objects.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>