//clientjobdescriptionscontroller.cs [HttpGet] public void Download(string format, string requests) { List<string> req = requests.Split(',').ToList(); foreach (var item in req) { RequestController controller = new RequestController(); if (format == "I") { Response.Write("rakesh"); controller.DownloadrequirementsInternalUse(Convert.ToInt64(item)); } if (format == "R") { controller.DownloadrequirementsRecruitmentPartner(Convert.ToInt64(item)); } if (format == "CA") { controller.DownloadrequirementsCandidate(Convert.ToInt64(item)); } if (format == "CR") { controller.Downloadrequirementscustomer(Convert.ToInt64(item)); } } }
// RequestController public void DownloadrequirementsInternalUse(long Id) { var result = requestService.GetResourceAvailability(Id); JobDescriptionPdfDownload jobDescriptionPdfDownload = new JobDescriptionPdfDownload(); string strOutput = jobDescriptionPdfDownload.DownloadrequirementsInternalUse(Id); Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=JD-Internal-Use-" + result.RequestCode + ".pdf"); Response.Cache.SetCacheability(HttpCacheability.NoCache); CreatePdf(strOutput); }
ZipArchive
File
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)