private TokenizedTemplate CreateTokenizedTemplate(EmailTarget target, string defaultTemplate, params Guid[] contexts) { var template = new TokenizedTemplate(target.ToTemplateTypeString()) { Name = target.ToString(), Description = target.ToString() + " of the email", ContextualDataTypeIds = contexts }; template.Set("en-us", defaultTemplate); return(template); }
private TokenizedTemplate CreateTokenizedTemplate(EmailTarget target, string defaultTemplate, params Guid[] contexts) { var template = new TokenizedTemplate(target.ToTemplateTypeString()) { Name = target.ToString(), Description = target.ToString() + " of the email", ContextualDataTypeIds = contexts }; template.Set("en-us", defaultTemplate); return template; }