Click Download button to get file!
Check out this tutorial to return different action result. The ASP.NET MVC framework supports several types of action results including:. File Download Sample in MVC: Day 40. Create an MVC project from the "Empty" template. Select "MVC 5 Controller - Empty" to add an empty controller. Name the controller "HomeController".