Пример #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));
        }
Пример #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));
        }
Пример #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);
        }
Пример #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);
        }