public bool Insert(int SiteId, string Title, string TemplateContent) { EmailTemplateDAC emailtemplateComponent = new EmailTemplateDAC(); int EmailTemplateId = 0; return(emailtemplateComponent.InsertNewEmailTemplate(ref EmailTemplateId, SiteId, Title, TemplateContent)); }
public bool Insert(int SystemEmailTypeID, int ConferenceID, int LanguageID, string Name, string Description, string EmailContent) { EmailTemplateDAC emailtemplateComponent = new EmailTemplateDAC(); int EmailTemplateID = 0; return(emailtemplateComponent.InsertNewEmailTemplate(ref EmailTemplateID, SystemEmailTypeID, ConferenceID, LanguageID, Name, Description, EmailContent)); }
public bool Insert(EmailTemplate emailtemplate) { int autonumber = 0; EmailTemplateDAC emailtemplateComponent = new EmailTemplateDAC(); bool endedSuccessfuly = emailtemplateComponent.InsertNewEmailTemplate(ref autonumber, emailtemplate.SiteId, emailtemplate.Title, emailtemplate.TemplateContent); if (endedSuccessfuly) { emailtemplate.EmailTemplateId = autonumber; } return(endedSuccessfuly); }
public bool Insert(EmailTemplate emailtemplate) { int autonumber = 0; EmailTemplateDAC emailtemplateComponent = new EmailTemplateDAC(); bool endedSuccessfuly = emailtemplateComponent.InsertNewEmailTemplate(ref autonumber, emailtemplate.SystemEmailTypeID, emailtemplate.ConferenceID, emailtemplate.LanguageID, emailtemplate.Name, emailtemplate.Description, emailtemplate.EmailContent); if (endedSuccessfuly) { emailtemplate.EmailTemplateID = autonumber; } return(endedSuccessfuly); }