public ActionResult DownloadFile(int id)
        {
            try
            {
                DownloadedFile downloadedFile = new DownloadedFile();
                downloadedFile.Download(id);

                return File(downloadedFile.FileContent, downloadedFile.FileType, downloadedFile.FileName);
            }
            catch (Exception ex)
            {
                return View("DisplayError", ex);
            }
        }
        public ActionResult GetPDF(int id)
        {
            try
            {
                DownloadedFile downloadedFile = new DownloadedFile();
                downloadedFile.Download(id);

                Response.AppendHeader("Content-Disposition", "inline; filename=" + downloadedFile.FileName);
                return File(downloadedFile.FileContent, downloadedFile.FileType);
            }
            catch (Exception ex)
            {
                return View("DisplayError", ex);
            }
        }