Esempio n. 1
0
        public void UpdateMessage(Models.MessageEmail message)
        {
            var entity = mapper.Map <Repositories.Entities.MessageEmail>(message);

            uow.MessageEmailRepository.Update(entity);
            uow.Commit();
        }
Esempio n. 2
0
        public int CreateMessage(Models.MessageEmail message)
        {
            var entity = mapper.Map <Repositories.Entities.MessageEmail>(message);

            entity = uow.MessageEmailRepository.Add(entity);
            uow.Commit();
            return(entity.Id);
        }