public void updateCarrito(CarritoDTO detail) {
   CarritoEntity entity = entityManager.merge(CarritoConverter.persistenceDTO2Entity(detail));
   CarritoConverter.entity2PersistenceDTO(entity);
 }
 public CarritoDTO createCarrito(CarritoDTO carrito) {
   CarritoEntity entity = CarritoConverter.persistenceDTO2Entity(carrito);
   entityManager.persist(entity);
   return CarritoConverter.entity2PersistenceDTO(entity);
 }