Hello
I have a problem with a razor email template.
I would like to set tags from the backend, because i want to avoid using httpcontext.
Template example:
<head>
</head>
@{
var customer = GetCustomer(GetValue("CustomerId"));
<body>
<strong>CustomerId : @GetValue("CustomerId")</strong>
</body>
}
When I use it in body, everything works fine, but i would like use it when i call GetCustomer so that I have a global variable, or even better, just pass an object to the template.
Is this even Possible? Or do i have to set a tag for each property in my customer object?
/Lasse