I have a list of class object called Notifications
public class Notifications
{
public string Name { get; set; }
}
There is a function that just returns List of Notifications. I want to construct an e-mail template that shows all the Notification information using macros in Kentico, unfortunately when i use the macros methods such as
{%
foreach (var Data in Notification) {
Data.Name
}
#%}
Such macro doesn't return an output at all eventhough i made sure all data was sent successfully to the email , i want to use a foreach loop.