Beispiel #1
0
        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());
        }
Beispiel #2
0
        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());
        }