public ActionResult PrintReportLoansBetweenTwoDates(ReportLoansBetweenTwoDatesFilter model) { try { ViewBag.Title = "Report"; List <ReportLoansBetweenTwoDatesResult> result = DbServices.ReportLoansBetweenTwoDates(model, db); return(PartialView(result)); } catch (CfException exc) { return(View()); } }
public ActionResult ReportLoansBetweenTwoDates(string operationType, ReportLoansBetweenTwoDatesFilter model) { try { if (operationType != null && operationType == "print") { return(RedirectToAction("PrintReportLoansBetweenTwoDates", model)); } List <ReportLoansBetweenTwoDatesResult> result = DbServices.ReportLoansBetweenTwoDates(model, db); return(PartialView("ReportLoansBetweenTwoDatesResult", result)); } catch (CfException exc) { ViewBag.ReportLoansBetweenTwoDates = reportLoansBetweenTwoDates; return(View()); } }