/// <summary> /// Downloads the file. /// </summary> /// <param name="fileKey">The file key.</param> /// <param name="fileName">Name of the file.</param> /// <returns></returns> public ActionResult DownloadFile(string fileKey, string fileName) { byte[] file = cachingService.GetTemporaryFile(fileKey); return(File(file, @"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml", fileName)); }