public ActionResult EmployeeDependentInfoSheet(PersonnelReportsVM param) { string SelectedId = Request.Form["ListOfSelectedEmployees"]; var reportViewer = this.generateFamilyDependentperBatchReportViewer(SelectedId); var memoryStream = Common.Helper.createFileMemoryStream(reportViewer, "PDF"); return new FileStreamResult(memoryStream, "application/pdf"); }
public ActionResult EmployeeDependentInfoSheet() { var viewModel = new PersonnelReportsVM() { DepartmentList = departmentDb.getAllDepartment(), ContractTypeList = departmentDb.getAllContractType() }; return View(viewModel); }