I have following code:
private void OnInvalidSubmit(FormInvalidSubmitEventArgs args)
{
var message = string.Join("<br />", args.Errors);
NotificationService.Notify(new NotificationMessage
{
Severity = NotificationSeverity.Warning,
Duration = 40000,
SummaryContent = ns =>@< RadzenText TextStyle = "TextStyle.H6" > Custom summary: < br /> @DateTime.Now </ RadzenText >,
DetailContent = ns => @< RadzenText TextStyle = "TextStyle.H6" >@message</ RadzenText >
});
}
this code leads to an empty notification:
Why is that?