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

            uow.MessageEmailRepository.Update(entity);
            uow.Commit();
        }
예제 #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);
        }