public string MontaHtmlEmbedded(BoletoViewModel model) { var novoBoletoBancarioPdf = new BoletoBancarioPdf(); if (model == null) { return(null); } var boleto = Popula(model); if (boleto != null) { novoBoletoBancarioPdf.Boleto = boleto; } else { return(null); } return(novoBoletoBancarioPdf.MontaHtmlEmbedded()); }
public byte[] GerarBoletoPdf(BoletoViewModel model) { var novoBoletoBancarioPdf = new BoletoBancarioPdf(); if (model == null) { return(null); } var boleto = Popula(model); if (boleto != null) { novoBoletoBancarioPdf.Boleto = boleto; } else { return(null); } return(novoBoletoBancarioPdf.MontaBytesPDF()); }