Exemple #1
0
        public override void PopulateFromLocalizedContent(LocalizedTemplateContent content)
        {
            base.PopulateFromLocalizedContent(content);

            if (content.PartName.EqualsInvariant(nameof(Subject)))
            {
                Subject = content.Content;
            }
            else
            {
                Body = content.Content;
            }
        }
 public virtual void PopulateFromLocalizedContent(LocalizedTemplateContent content)
 {
     //Need to left language as null for empty string
     LanguageCode = !string.IsNullOrEmpty(content?.LanguageCode) ? content.LanguageCode : null;
 }