public void UpdateMessage(Models.MessageEmail message) { var entity = mapper.Map <Repositories.Entities.MessageEmail>(message); uow.MessageEmailRepository.Update(entity); uow.Commit(); }
public int CreateMessage(Models.MessageEmail message) { var entity = mapper.Map <Repositories.Entities.MessageEmail>(message); entity = uow.MessageEmailRepository.Add(entity); uow.Commit(); return(entity.Id); }