// GET: Report #region Certifications public ActionResult PrintCertificate(ParamerterViewModels item) { var model = unitOfWork.CertificationsRepo.Get(m => m.Id == item.Id); XtraReport xtraReport = new XtraReport(); if (model.Any()) { if (model.FirstOrDefault().CertificationTypes.CertificationType == "Barangay Clearance") { xtraReport = new rptBarangayClearance() { DataSource = model }; } else if (model.FirstOrDefault().CertificationTypes.CertificationType == "Resident Certification") { xtraReport = new rptResidents() { DataSource = model }; } else if (model.FirstOrDefault().CertificationTypes.CertificationType == "Business Permit") { xtraReport = new rptBusinessCertificate() { DataSource = model }; } } return(PartialView(xtraReport)); }
public ActionResult ShowReportViewer(ParamerterViewModels item) { return(PartialView(item)); }