<?php

namespace App\Http\Controllers\v1\Tenancy\Visit;

use App\Actions\Tenancy\Visit\GetBlockedDaysAction;
use App\Http\Controllers\Controller;
use Illuminate\Http\Response;
use Illuminate\Support\Carbon;

class GetBlockedDaysController extends Controller
{
    public function __invoke(int $specialistId, int $procedureId, Carbon $startDate, Carbon $endDate, GetBlockedDaysAction $action): Response
    {
        return $this->ok($action->execute($specialistId, $procedureId, $startDate, $endDate));
    }
}
