Ejemplo n.º 1
0
        public void CreateEmail(CreateEmailModel createEmailModel)
        {
            var email       = createEmailModel.Email;
            var emailEntity = new SmtpEntities.Entities.Email
            {
                EmailStatus = email.EmailStatus,
                Id          = email.Id,
                IsActive    = email.IsActive,
                Text        = email.Text,
                Title       = email.Title
            };
            var emailId = _emailRepository.CreateEmail(emailEntity);

            _groupEmailRepository.CreateGroupeEmailByEmailId(emailId);
        }