private string GetOrderProductsAsHtml(Order order) { var products = order.OrderItems; var message = ""; foreach (var prod in products) { message += "<table border='0' cellpadding='0' cellspacing='0' align='center' width='100%' role='module' data-type='columns' style='padding:0px 40px 0px 40px;' bgcolor='#FFFFFF'> " + "<tbody> " + "<tr role='module-content'> " + "<td height='100%' valign='top'> " + "<table class='column' width='173' style='width:173px; border-spacing:0; border-collapse:collapse; margin:0px 0px 0px 0px;' cellpadding='0' cellspacing='0' align='left' border='0' bgcolor=''> " + "<tbody>" + "<tr>" + "<td style='padding:0px;margin:0px;border-spacing:0;'>" + "<table class='module' role='module' data-type='text' border='0' cellpadding='0' cellspacing='0' width='100%' style='table-layout: fixed;' data-muid='64573b96-209a-4822-93ec-5c5c732af15c.2' data-mc-module-version='2019-10-22'>" + "<tbody> " + "<tr>" + "<td style='padding:15px 0px 15px 0px; line-height:22px; text-align:inherit;' height='100%' valign='top' bgcolor='' role='module-content'>" + "<div>" + "<div style='font-family: inherit; text-align: center'>" + $"<span style='color: #80817f; font-size: 12px'>{prod.ItemOrdered.ProductName}</span>" + "</div>" + "<div></div>" + "</div>" + "</td>" + "</tr>" + "</tbody>" + "</table>" + "</td> " + "</tr> " + "</tbody> " + "</table> " + "<table class='column' width='173' style='width:173px; border-spacing:0; border-collapse:collapse; margin:0px 0px 0px 0px;' cellpadding='0' cellspacing='0' align='left' border='0' bgcolor=''> " + "<tbody> " + "<tr> " + "<td style='padding:0px;margin:0px;border-spacing:0;'>" + "<table class='module' role='module' data-type='text' border='0' cellpadding='0' cellspacing='0' width='100%' style='table-layout: fixed;' data-muid='64573b96-209a-4822-93ec-5c5c732af15c.1.2' data-mc-module-version='2019-10-22'>" + "<tbody> " + "<tr> " + "<td style='padding:15px 0px 15px 0px; line-height:22px; text-align:inherit;' height='100%' valign='top' bgcolor='' role='module-content'>" + "<div>" + "<div style='font-family: inherit; text-align: center'>" + $"<span style='color: #80817f; font-size: 12px'>{prod.Quantity}</span>" + "</div>" + "<div></div>" + "</div>" + "</td> " + "</tr> " + "</tbody> " + "</table>" + "</td> " + "</tr> " + "</tbody> " + "</table> " + "<table width='173' style='width:173px; border-spacing:0; border-collapse:collapse; margin:0px 0px 0px 0px;' cellpadding='0' cellspacing='0' align='left' border='0' bgcolor='' class='column column-2'> " + "<tbody> " + "<tr> " + "<td style='padding:0px;margin:0px;border-spacing:0;'>" + "<table class='module' role='module' data-type='text' border='0' cellpadding='0' cellspacing='0' width='100%' style='table-layout: fixed;' data-muid='64573b96-209a-4822-93ec-5c5c732af15c.1.1.1' data-mc-module-version='2019-10-22'> " + "<tbody>" + "<tr> " + "<td style='padding:15px 0px 15px 0px; line-height:22px; text-align:inherit;' height='100%' valign='top' bgcolor='' role='module-content'>" + "<div>" + "<div style='font-family: inherit; text-align: center'>" + $"<span style='color: #80817f; font-size: 12px'>${prod.Price}</span>" + "</div>" + "<div></div>" + "</div>" + "</td>" + "</tr> " + "</tbody> " + "</table>" + "</td> " + "</tr> " + "</tbody> " + "</table>" + "</td> " + "</tr> " + "</tbody> " + "</table>"; } return(message); }