- Add ExcelResult.cs and ExcelControllerExtension.cs to your project.
- Change the namespace of ExcelControllerExtension to match your controller's namespace.
- Make the proper call to 'Excel'
- Include a filename (with proper extension), worksheet name, and your data rows as IQueryable
return this.excel("fileName.xls", "worksheetName", data.asQueryable());
Run the project in Visual Studio and click 'Excelsiate' on the main screen.