Exemplo n.º 1
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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
        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);
        }