How to substitute Sendgrid template variables? c#
var client = new SendGridClient(ApiKey);
var dynamicTemplateData = new Dictionary<string, string>
{
{"first_name", "John"},
{"last_name", "Snow"},
};
var msg = MailHelper.CreateSingleTemplateEmail(
new EmailAddress("[email protected]"),
new EmailAddress("[email protected]"),
"d-template-id",
dynamicTemplateData);
var response = await client.SendEmailAsync(msg);