public ActionResult TestVendorExportAsHtml(int vendorId) { var exportMenu = new ExportVendorMenuViewModel { VendorId = vendorId, VendorDetails = true, VendorDocuments = false, VendorNotes = false }; var exportViewModel = _buildExportViewModel.BuildFrom(exportMenu, renderAsPdf:false); return View("ExportVendor", exportViewModel); }
public ActionResult Post(ExportVendorMenuViewModel exportMenu) { var exportViewModel = _buildExportViewModel.BuildFrom(exportMenu, renderAsPdf:true); return this.ExportVendorView("ExportVendor", exportViewModel, exportMenu.GetExportFilename(), exportMenu.DownloadTokenValue); }