public static MailMessageTemplate NewMailMessageTemplate(FeedRecord messageContent, Assembly assembly) { var messageTemplate = (MailMessageTemplate)Activator.CreateInstance(assembly.GetType("Federation.MailService.MailMessageRazorTemplate")); messageTemplate.SetModel(messageContent); return messageTemplate; }
public static MailMessageTemplate NewMailMessageTemplate(FeedRecord messageContent, Assembly assembly) { var messageTemplate = (MailMessageTemplate)Activator.CreateInstance(assembly.GetType("Federation.MailService.MailMessageRazorTemplate")); messageTemplate.SetModel(messageContent); return(messageTemplate); }