Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        public bool Insert( int SiteId,  string Title,  string TemplateContent)
        {
            EmailTemplateDAC emailtemplateComponent = new EmailTemplateDAC();
            int EmailTemplateId = 0;

            return emailtemplateComponent.InsertNewEmailTemplate( ref EmailTemplateId,  SiteId,  Title,  TemplateContent);
        }