How to add a HttpResponse to a C# class : <p>I'm generating an Excel file and I want to download it like this in my ASP.NET MVC 5 application:</p>

<pre><code>var ef = new ExcelFile();
var ws = ef.Worksheets.Add("Worksheet 1");

ef.Save(this.Response, "asd.xlsx");
</code></pre>

<p>In the last line, it gives error because there is no HttpResponse, how can I add HttpResponse to my class? Thanks.</p>
