public async Task <DomainResult <BestRoutePath> > Handle(FindTheBestRoutePathCommand command, CancellationToken cancellationToken)
        {
            var route = await _routeRepository.FindAsync(command.RouteId);

            if (route is null)
            {
                return(DomainResult.Failure <BestRoutePath>("Route was not found"));
            }

            var points = await _pointRepository.GetAllActivePoints();

            var connections = await _connectionRepository.GetAllActiveConnections();

            return(new RouteService(connections, points).FindBestPath(route));
        }