public function saveBrick($slug, $postValues)
    {
        $brickObject = BrickFactory::createBrickFromPostValues($postValues);

        $bricks = $this->repository->bricks;
        foreach ($bricks as $key => $brick) {
            if ($brick->slug == $slug) {
                $bricks[$key] = $brickObject;
            }
        }
        $this->repository->bricks = $bricks;
        $this->save();
    }