public async Task <IActionResult> printLoanPerRank(string loancode) { var fg = fundService.GetLoanTypes(); ViewBag.contributionList = new SelectList(fg, "Code", "Description", loancode); if (string.IsNullOrEmpty(loancode)) { return(View()); } var result = services.GetAll(loancode); return(await generatePdf.GetPdf("Views/LoanPerRank/LoanPerRankReport.cshtml", result)); }