Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the EmailTemplates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEmailTemplates(EmailTemplate emailTemplate)
 {
     base.AddObject("EmailTemplates", emailTemplate);
 }
Example #2
0
 /// <summary>
 /// Create a new EmailTemplate object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="templateName">Initial value of the TemplateName property.</param>
 /// <param name="subject">Initial value of the Subject property.</param>
 /// <param name="emailBody">Initial value of the EmailBody property.</param>
 public static EmailTemplate CreateEmailTemplate(global::System.Int32 id, global::System.String templateName, global::System.String subject, global::System.String emailBody)
 {
     EmailTemplate emailTemplate = new EmailTemplate();
     emailTemplate.Id = id;
     emailTemplate.TemplateName = templateName;
     emailTemplate.Subject = subject;
     emailTemplate.EmailBody = emailBody;
     return emailTemplate;
 }