<?php

namespace App\Generated\Controllers\V1_1;

use App\Http\Services\V1_1\BannerService;
use App\Generated\V1_1\Messages\Banner\PositionListMessage;
use App\Http\Controllers\Controller;
use DB;

class BannerController extends Controller
{
    public $handler;

    public function __construct(BannerService $handler)
    {
        $this->handler = $handler;
    }

    public function positionList(PositionListMessage $message)
    {
        $message->validateInput();
        $this->handler->positionList($message);
        $message->validateOutput();
        return $message->getResponse();
    }

}
