I am trying to download excel file from mvc method.
public ActionResult Download(string fileGuid, string fileName)
{
byte[] data = TempData[fileGuid] as byte[];
return File(data, "application/vnd.ms-excel", fileName);
}
Getting error saying Non invocable member File cannot be used like a method. Which namespace do i need to use in order to get File method here in the above method.