Esempio n. 1
0
        public void UpdateEmailTemplate(EmailsTemplate emailsTemplate)
        {
            var original = emailTemplatesRepository.GetById(t => t.TemplateId == emailsTemplate.TemplateId);

            emailTemplatesRepository.Update(original, emailsTemplate.AutoMapObject <EmailsTemplate, DB.EmailsTemplate>());
        }
Esempio n. 2
0
 public int CreateEmailTemplate(EmailsTemplate emailTemplate)
 {
     return(emailTemplatesRepository.Insert(emailTemplate.AutoMapObject <EmailsTemplate, DB.EmailsTemplate>()).TemplateId);
 }