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( int SiteId, string Title, string TemplateContent) { EmailTemplateDAC emailtemplateComponent = new EmailTemplateDAC(); int EmailTemplateId = 0; return emailtemplateComponent.InsertNewEmailTemplate( ref EmailTemplateId, SiteId, Title, TemplateContent); }