Ejemplo n.º 1
0
        /// <summary>
        /// Download the report for a requested format
        /// </summary>
        /// <param name="reportFileName">Holds report file name</param>
        /// <param name="currentDateTime"></param>
        /// <returns>files result. is used to download the file</returns>
        public ActionResult DownloadReport(string reportFileName, string currentDateTime)
        {
            string fileName;
            string contentType;
            string filePath = ReportUtility.GetReportFileDetailsToDownload(Constants.ClaimVarianceReportFileBaseName, reportFileName, out fileName, Enums.DownloadFileType.Csv, out contentType, currentDateTime);

            return(File(filePath, contentType, fileName));
        }