Esempio n. 1
0
        public async Task <byte[]> GetIDMemberDetails(long userId, int productCode, string productLabel)
        {
            var iDBO = await _iDTemplatesDataAccess.GetIDMemberDetails(userId, productCode, productLabel);

            var html = Utilities.UtilityHelper.ReplaceParametersWithValues(iDBO.GetType(), iDBO, iDBO.Html);

            return(_iDocconverter.ConvertHtmlToPDF(_iConverter, html));
        }
Esempio n. 2
0
        public async Task <byte[]> GetMemberPaymentTemplateDetails(long userId, string transactionId)
        {
            var paymentTemplateBO = await _paymentDataAccess.GetMemberPaymentTemplateDetails(userId, transactionId);

            var html = Utilities.UtilityHelper.ReplaceParametersWithValues(paymentTemplateBO.GetType(), paymentTemplateBO, paymentTemplateBO.Html);

            return(_iDocconverter.ConvertHtmlToPDF(_iConverter, html));
        }