//[HttpGet("file", Name = "GetFile")]
        //public async Task<IActionResult> GetFile()
        //{
        //    var mymodel = Db.SomeCallToGetModel();
        //    return Request.CreatePdfResponse(
        //        "~/Views/Home/Simple.cshtml",
        //        model: mymodel, filename: "simple.pdf");
        //}

        public ActionResult Assessment(int profileAssessmentToolID, string language = "AR")
        {
            var individualToolReportView = _service.ExportAssessmentReportPDF(profileAssessmentToolID, language).Result.Data;

            var viewName  = individualToolReportView.ViewPath.Replace(".cshtml", String.Empty);
            var viewAsPdf = new ViewAsPdf(viewName, individualToolReportView)
            {
                PageMargins    = new Margins(0, 0, 0, 0),
                CustomSwitches = "--debug-javascript --no-stop-slow-scripts --javascript-delay 1000",
                FileName       = Uri.EscapeDataString(individualToolReportView.FileName + ".pdf").Replace(",", "%2C")
            };

            return(viewAsPdf);
        }
        public ActionResult Assessment(int ProfileAssessmentToolID)
        {
            var individualToolReportView = _service.ExportAssessmentReportPDF(ProfileAssessmentToolID).Result.Data;

            string.Format("--print-media-type --footer-spacing -10 --allow {0} --footer-html {0} --footer-spacing -10", this.Url.Action("Footer", "Home", new
            {
                area = ""
            }, "http"));
            var viewAsPdf = new ViewAsPdf(individualToolReportView.ViewPath, individualToolReportView)
            {
                PageMargins    = new Margins(0, 0, 0, 0),
                CustomSwitches = "--debug-javascript --no-stop-slow-scripts --javascript-delay 1000",
                FileName       = Uri.EscapeDataString(individualToolReportView.FileName + ".pdf").Replace(",", "%2C")
            };

            return(viewAsPdf);
        }