public void Get(string para1, string para2) { string fname = para1 + "_" + para2; string mergedPdfSavePath = mergedfilepath + fname + ".pdf"; PDFService ps = new PDFService(); if (ps.GenerateCombinedPdfForTravelAllowance(LoadApplicationFilesList(para1, Convert.ToInt32(para2)), mergedPdfSavePath) != -1) { string path = mergedPdfSavePath; DownloadFile(path, System.IO.Path.GetFileName(path)); } }