I'm trying to put a file .xlsx to download. I'm using library.cs. When I used MVC 3, I do it with it:
HttpContext.Response.Clear();
HttpContext.Response.AppendHeader("Content-Disposition", contentDisposition.ToString());
return File(pck.GetAsByteArray(), "application/octet-stream");
But now, with .cs i don't know how I do it.